Skip to content

Commit 2bdfd8f

Browse files
committed
Add parentheses required by Particle cloud compiler's -Wparentheses setting
1 parent 9ffc981 commit 2bdfd8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: Tic.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ class TicBase
685685
/// See also getAgcBottomCurrentLimit().
686686
void setAgcBottomCurrentLimit(TicAgcBottomCurrentLimit limit)
687687
{
688-
commandW7(TicCommand::SetAgcOption, 0x10 | (uint8_t)limit & 0xF);
688+
commandW7(TicCommand::SetAgcOption, 0x10 | ((uint8_t)limit & 0xF));
689689
}
690690

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

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

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

0 commit comments

Comments
 (0)