X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/f51714bea4af46dd81d3ed97acffea57201f108f..7ba4ea19644711d8f86c2df3a244da797e23cc96:/flash-ota.c diff --git a/flash-ota.c b/flash-ota.c index 22f98ce..7291e17 100644 --- a/flash-ota.c +++ b/flash-ota.c @@ -1,6 +1,6 @@ /* flasher for HomeMatic-devices supporting OTA updates * - * Copyright (c) 2014-15 Michael Gernoth + * Copyright (c) 2014-16 Michael Gernoth * * 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); } }