From ad673bec6c2aa12b3ea5ffb02400f5d683e20a51 Mon Sep 17 00:00:00 2001 From: gururise Date: Wed, 8 Apr 2020 11:41:10 -0700 Subject: [PATCH] send commands using correct serial object --- tasmota/xsns_18_pms5003.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/xsns_18_pms5003.ino b/tasmota/xsns_18_pms5003.ino index 209d43380..8d526bfb6 100644 --- a/tasmota/xsns_18_pms5003.ino +++ b/tasmota/xsns_18_pms5003.ino @@ -81,7 +81,7 @@ struct pmsX003data { 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; pms_ready = 1; PmsSendCmd(CMD_MODE_ACTIVE); + PmsSendCmd(CMD_WAKEUP); } else if ((XdrvMailbox.payload > 0) && (XdrvMailbox.payload < 256)) {