mirror of https://github.com/arendst/Tasmota.git
add debug code to show final command sequence
This commit is contained in:
parent
5c613040a1
commit
47629a9d61
|
@ -123,6 +123,9 @@ size_t MhzSendCmd(byte command_id)
|
|||
memcpy_P(&mhz_send[6], kMhzCommands[command_id] + sizeof(kMhzCommands[2]), sizeof(kMhzCommands[2]));
|
||||
mhz_send[8] = MhzCalculateChecksum(mhz_send);
|
||||
|
||||
snprintf_P(log_data, sizeof(log_data), PSTR("Final MhzCommand: %x %x %x %x %x %x %x %x %x"),mhz_send[0],mhz_send[1],mhz_send[2],mhz_send[3],mhz_send[4],mhz_send[5],mhz_send[6],mhz_send[7],mhz_send[8]);
|
||||
AddLog(LOG_LEVEL_DEBUG);
|
||||
|
||||
return MhzSerial->write(mhz_send, sizeof(mhz_send));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue