Added firmware hash readout

This commit is contained in:
Mark Qvist 2022-11-01 22:21:07 +01:00
parent 95970a54fe
commit 312e4ec2fe
5 changed files with 54 additions and 3 deletions

View file

@ -697,6 +697,18 @@ void serialCallback(uint8_t sbyte) {
device_save_signature();
}
#endif
} else if (command == CMD_HASHES) {
#if MCU_VARIANT == MCU_ESP32
if (sbyte == 0x01) {
kiss_indicate_target_fw_hash();
} else if (sbyte == 0x02) {
kiss_indicate_fw_hash();
} else if (sbyte == 0x03) {
kiss_indicate_bootloader_hash();
} else if (sbyte == 0x04) {
kiss_indicate_partition_table_hash();
}
#endif
} else if (command == CMD_FW_HASH) {
#if MCU_VARIANT == MCU_ESP32
if (sbyte == FESC) {