mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
PMS5003 use active mode if TX pin not connected
This commit is contained in:
parent
ad673bec6c
commit
9516f339d6
@ -184,6 +184,12 @@ bool PmsCommandSensor(void)
|
|||||||
pms_ready = 0;
|
pms_ready = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pin[GPIO_PMS5003_TX] >= 99)
|
||||||
|
{
|
||||||
|
// setting interval not supported if TX pin not connected
|
||||||
|
Settings.novasds_startingoffset = 0;
|
||||||
|
}
|
||||||
|
|
||||||
Response_P(S_JSON_SENSOR_INDEX_NVALUE, XSNS_18, Settings.novasds_startingoffset);
|
Response_P(S_JSON_SENSOR_INDEX_NVALUE, XSNS_18, Settings.novasds_startingoffset);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user