add debug code to show final command sequence

This commit is contained in:
Staars 2018-12-13 12:34:51 +01:00
parent 5c613040a1
commit 47629a9d61
1 changed files with 3 additions and 0 deletions

View File

@ -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));
}