Skip to content

Commit

Permalink
Add parentheses required by Particle cloud compiler's -Wparentheses s…
Browse files Browse the repository at this point in the history
…etting
rgiese committed Aug 28, 2020
1 parent 9ffc981 commit 2bdfd8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tic.h
Original file line number Diff line number Diff line change
@@ -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.
@@ -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.
@@ -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

0 comments on commit 2bdfd8f

Please sign in to comment.