Skip to content

Commit

Permalink
Add OTA update debug info (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
tekka007 authored Dec 30, 2016
1 parent 8fabae9 commit add3f5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/MyOTAFirmwareUpdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,7 @@ bool transportIsValidFirmware(void)
}
}
}
OTA_DEBUG(PSTR("OTA:CRC:B=%04X,C=%04X,F=%04X\n"), _nodeFirmwareConfig.blocks,crc,
_nodeFirmwareConfig.crc);
return crc == _nodeFirmwareConfig.crc;
}
1 change: 1 addition & 0 deletions core/MyOTAFirmwareUpdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
* |!| OTA | FWP | CRC FAIL | FW CRC verification failed
* | | OTA | FRQ | FW REQ,T=%04X,V=%04X,B=%04X | Request FW update, FW type (T), version (V), block (B)
* |!| OTA | FRQ | FW UPD FAIL | FW update failed
* | | OTA | CRC | B=%04X,C=%04X,F=%04X | FW CRC verification. FW blocks (B), calculated CRC (C), FW CRC (F)
*
*
* @brief API declaration for MyOTAFirmwareUpdate
Expand Down

0 comments on commit add3f5f

Please sign in to comment.