]> git.zerfleddert.de Git - hmcfgusb/blobdiff - flash-ota.c
hmsniff: add two more message types
[hmcfgusb] / flash-ota.c
index 22f98ce7ac89ec1fb29c51dd6b810f37ee14343c..7291e173bc6370dada2af02961947f1051ef8958 100644 (file)
@@ -1,6 +1,6 @@
 /* flasher for HomeMatic-devices supporting OTA updates
  *
- * Copyright (c) 2014-15 Michael Gernoth <michael@gernoth.net>
+ * Copyright (c) 2014-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
@@ -325,6 +325,7 @@ int send_hm_message(struct ota_dev *dev, struct recv_data *rdata, uint8_t *msg)
                                                                                        memcpy(&(rbuf[PAYLOAD]), resp, 16);
                                                                                        SET_LEN_FROM_PAYLOADLEN(rbuf, 16);
 
+                                                                                       usleep(110000); /* Determined by a fair dice roll */
                                                                                        return send_hm_message(dev, rdata, rbuf);
                                                                                }
                                                                        }
Impressum, Datenschutz