some refactoring

This commit is contained in:
2022-04-08 21:16:02 +02:00
parent f6bc884edd
commit 6071e34771
5 changed files with 100 additions and 83 deletions

View File

@ -111,7 +111,7 @@ void P60DockHandler::parseHkTableReply(const uint8_t *packet) {
dataOffset += 6;
coreHk.bootCount = *(packet + dataOffset) << 24 | *(packet + dataOffset + 1) << 16 |
*(packet + dataOffset + 2) << 8 | *(packet + dataOffset + 3);
if(firstHk) {
if (firstHk) {
triggerEvent(P60_BOOT_COUNT, coreHk.bootCount.value);
}
dataOffset += 6;