From 2bdfd8f82745dc1be429eb323dda6349abb864f4 Mon Sep 17 00:00:00 2001 From: Robin Giese Date: Fri, 28 Aug 2020 15:06:42 -0700 Subject: [PATCH] Add parentheses required by Particle cloud compiler's -Wparentheses setting --- Tic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tic.h b/Tic.h index 91e1f05..5c53239 100644 --- a/Tic.h +++ b/Tic.h @@ -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