sensor_sdm120: minor, put spaces around operators
This commit is contained in:
parent
011d12330c
commit
4a637504dd
|
@ -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)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue