From: Michael Gernoth Date: Tue, 1 Sep 2015 21:31:54 +0000 (+0200) Subject: hmsniff: add power event X-Git-Tag: v0.102~20 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/920d34e08c728c4e56f80fad26bc8f81f044f674?hp=bcbce09d48ed6b2792fd6128a62c54f9860d9b3a hmsniff: add power event --- diff --git a/hmsniff.c b/hmsniff.c index 70e2412..89e2e82 100644 --- a/hmsniff.c +++ b/hmsniff.c @@ -95,6 +95,9 @@ char *hm_message_types(uint8_t type, uint8_t subtype) case 0x5a: return "Thermal control"; break; + case 0x5e: + return "Power event"; + break; case 0x70: return "Weather event"; break; @@ -151,6 +154,7 @@ static void dissect_hm(uint8_t *buf, int len) } else { if (!(count++ % 20)) printf(" LL NR FL CM sender recvr payload\n"); + printf("%s.%03ld: %02X %02X %02X %02X %02X%02X%02X %02X%02X%02X ", ts, tv.tv_usec/1000, buf[0], buf[1], buf[2], buf[3],