* \param[in] dataarr Command byte array to check against\r
* \param[in] cb1 First command byte to check\r
*/\r
- #define IS_ONEBYTE_COMMAND(dataarr, cb1) (dataarr[0] == cb1)\r
+ #define IS_ONEBYTE_COMMAND(dataarr, cb1) (dataarr[0] == (cb1))\r
\r
/** Convenience macro, used to determine if the issued command is the given two-byte long command.\r
*\r
* \param[in] cb1 First command byte to check\r
* \param[in] cb2 Second command byte to check\r
*/\r
- #define IS_TWOBYTE_COMMAND(dataarr, cb1, cb2) ((dataarr[0] == cb1) && (dataarr[1] == cb2))\r
+ #define IS_TWOBYTE_COMMAND(dataarr, cb1, cb2) ((dataarr[0] == (cb1)) && (dataarr[1] == (cb2)))\r
\r
/** Length of the DFU file suffix block, appended to the end of each complete memory write command.\r
* The DFU file suffix is currently unused (but is designed to give extra file information, such as\r