Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parentheses required by Particle cloud compiler's -Wparentheses #2

Merged
merged 1 commit into from
Sep 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Tic.h
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ class TicBase
/// See also getAgcBottomCurrentLimit().
void setAgcBottomCurrentLimit(TicAgcBottomCurrentLimit limit)
{
commandW7(TicCommand::SetAgcOption, 0x10 | (uint8_t)limit & 0xF);
commandW7(TicCommand::SetAgcOption, 0x10 | ((uint8_t)limit & 0xF));
}

/// Temporarily sets the AGC current boost steps.
Expand All @@ -695,7 +695,7 @@ class TicBase
/// See also getAgcCurrentBoostSteps().
void setAgcCurrentBoostSteps(TicAgcCurrentBoostSteps steps)
{
commandW7(TicCommand::SetAgcOption, 0x20 | (uint8_t)steps & 0xF);
commandW7(TicCommand::SetAgcOption, 0x20 | ((uint8_t)steps & 0xF));
}

/// Temporarily sets the AGC frequency limit.
Expand All @@ -705,7 +705,7 @@ class TicBase
/// See also getAgcFrequencyLimit().
void setAgcFrequencyLimit(TicAgcFrequencyLimit limit)
{
commandW7(TicCommand::SetAgcOption, 0x30 | (uint8_t)limit & 0xF);
commandW7(TicCommand::SetAgcOption, 0x30 | ((uint8_t)limit & 0xF));
}

/// Gets the Tic's current operation state, which indicates whether it is
Expand Down