]> git.zerfleddert.de Git - hmcfgusb/commitdiff
hmsniff: add power event
authorMichael Gernoth <michael@gernoth.net>
Tue, 1 Sep 2015 21:31:54 +0000 (23:31 +0200)
committerMichael Gernoth <michael@gernoth.net>
Tue, 1 Sep 2015 21:31:54 +0000 (23:31 +0200)
hmsniff.c

index 70e2412a71d7d534396c01ad8a9e2d1f1fc472ee..89e2e82ebb0e51ea73c0a020488cb70a06e45ea4 100644 (file)
--- 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 0x5a:
                        return "Thermal control";
                        break;
+               case 0x5e:
+                       return "Power event";
+                       break;
                case 0x70:
                        return "Weather 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");
        } 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],
                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],
Impressum, Datenschutz