This commit is contained in:
parent
d72beaeaae
commit
edd102e387
|
@ -120,7 +120,7 @@ static uint8_t Sensor_CheckData(void)
|
||||||
|
|
||||||
if(alarm_flag)
|
if(alarm_flag)
|
||||||
{
|
{
|
||||||
alarm_status_buffer[index] = ((voltage > Sensor_device.alarm_value - 50) && (voltage < MQ_VOLTAGE_HIGH_LIMIT)) ? kSensorAlarm : kSensorNormal;
|
alarm_status_buffer[index] = ((voltage > (Sensor_device.alarm_value - 50)) && (voltage < MQ_VOLTAGE_HIGH_LIMIT)) ? kSensorAlarm : kSensorNormal;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue