]> cvs.zerfleddert.de Git - hmcfgusb/blobdiff - hmsniff.c
README: Homegear now knows about HM-USB-IF
[hmcfgusb] / hmsniff.c
index a3cbe7a244ffd96304018b7e5a383a68bee62f13..1f5d889a0fff7f7874f07ab54317beb847336a72 100644 (file)
--- a/hmsniff.c
+++ b/hmsniff.c
@@ -125,7 +125,7 @@ static void dissect_hm(uint8_t *buf, int len)
        if (buf[2] & (1 << 7)) printf("RPTEN ");
        printf("\n");
        printf("\tMessage type: %s (0x%02x)\n", hm_message_types(buf[3]), buf[3]);
-       printf("\tMesage: ");
+       printf("\tMessage: ");
        for (i = 10; i < len; i++) {
                printf("%02X", buf[i]);
        }
@@ -221,5 +221,7 @@ int main(int argc, char **argv)
                hmcfgusb_close(dev);
        } while (!quit);
 
+       hmcfgusb_exit();
+
        return EXIT_SUCCESS;
 }
Impressum, Datenschutz