mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
send commands using correct serial object
This commit is contained in:
parent
51909679d4
commit
ad673bec6c
@ -81,7 +81,7 @@ struct pmsX003data {
|
|||||||
|
|
||||||
size_t PmsSendCmd(uint8_t command_id)
|
size_t PmsSendCmd(uint8_t command_id)
|
||||||
{
|
{
|
||||||
return MhzSerial->write(kPmsCommands[command_id], sizeof(kPmsCommands[command_id]));
|
return PmsSerial->write(kPmsCommands[command_id], sizeof(kPmsCommands[command_id]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************************/
|
/*********************************************************************************************/
|
||||||
@ -172,6 +172,7 @@ bool PmsCommandSensor(void)
|
|||||||
wake_mode = 1;
|
wake_mode = 1;
|
||||||
pms_ready = 1;
|
pms_ready = 1;
|
||||||
PmsSendCmd(CMD_MODE_ACTIVE);
|
PmsSendCmd(CMD_MODE_ACTIVE);
|
||||||
|
PmsSendCmd(CMD_WAKEUP);
|
||||||
}
|
}
|
||||||
else if ((XdrvMailbox.payload > 0) && (XdrvMailbox.payload < 256))
|
else if ((XdrvMailbox.payload > 0) && (XdrvMailbox.payload < 256))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user