sensor_sdm120: minor, put spaces around operators

This commit is contained in:
King Kévin 2020-02-17 14:17:18 +01:00
parent 011d12330c
commit 4a637504dd
1 changed files with 30 additions and 31 deletions

View File

@ -178,7 +178,7 @@ void sensor_sdm120_setup(uint32_t baudrate)
*/
static bool sensor_sdm120_transmit_request(uint8_t meter_id, uint8_t function, uint16_t address, float value)
{
if (meter_id==0) { // broadcast request are not supported
if (0 == meter_id) { // broadcast request are not supported
return false;
}
if (function != 0x03 && function != 0x04 && function != 0x10) { // function not supported
@ -367,4 +367,3 @@ void TIM_ISR(SENSOR_SDM120_TIMER)(void)
}
}
}