]> git.zerfleddert.de Git - hmcfgusb/blobdiff - hmsniff.c
hmsniff: add two more message types
[hmcfgusb] / hmsniff.c
index 9b59e2fbabd47c541acdf0ce44e5bf698265d63e..82907f78b8f9029e3232b495af28839717eb8f87 100644 (file)
--- a/hmsniff.c
+++ b/hmsniff.c
@@ -1,6 +1,6 @@
 /* HM-sniffer for HM-CFG-USB
  *
- * Copyright (c) 2013-15 Michael Gernoth <michael@gernoth.net>
+ * Copyright (c) 2013-16 Michael Gernoth <michael@gernoth.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -89,6 +89,9 @@ char *hm_message_types(uint8_t type, uint8_t subtype)
                case 0x53:
                        return "Water sensor";
                        break;
+               case 0x54:
+                       return "Gas sensor";
+                       break;
                case 0x58:
                        return "Climate event";
                        break;
@@ -96,6 +99,7 @@ char *hm_message_types(uint8_t type, uint8_t subtype)
                        return "Thermal control";
                        break;
                case 0x5e:
+               case 0x5f:
                        return "Power event";
                        break;
                case 0x70:
@@ -243,7 +247,7 @@ int main(int argc, char **argv)
                                break;
                        case 'V':
                                printf("hmsniff " VERSION "\n");
-                               printf("Copyright (c) 2013-15 Michael Gernoth\n\n");
+                               printf("Copyright (c) 2013-16 Michael Gernoth\n\n");
                                exit(EXIT_SUCCESS);
                        case 'h':
                        case ':':
Impressum, Datenschutz