diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bluez_hci/ant_native_hci.c | 4 | ||||
-rw-r--r-- | src/common/inc/ant_version.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/bluez_hci/ant_native_hci.c b/src/bluez_hci/ant_native_hci.c index 55cde44..f247534 100644 --- a/src/bluez_hci/ant_native_hci.c +++ b/src/bluez_hci/ant_native_hci.c @@ -791,6 +791,9 @@ ANTStatus ant_tx_message(ANT_U8 ucLen, ANT_U8 *pucMesg) case ANT_STATUS_TRANSPORT_UNSPECIFIED_ERROR: { ANT_DEBUG_D("Command Complete: ANT_STATUS_UNSPECIFIED_ERROR"); + + // Give the chip a break before we try to resend data. + nanosleep((struct timespec[]){{0, 50000000}}, NULL); time_t currentTime = time(NULL); @@ -798,7 +801,6 @@ ANTStatus ant_tx_message(ANT_U8 ucLen, ANT_U8 *pucMesg) { if(currentTime < endTime) { - nanosleep((struct timespec[]){{0, 50000000}}, NULL); ANT_DEBUG_V("Retrying. Current time = %d. " "End time = %d", (int)currentTime, (int)endTime); diff --git a/src/common/inc/ant_version.h b/src/common/inc/ant_version.h index 47a6b6f..3620908 100644 --- a/src/common/inc/ant_version.h +++ b/src/common/inc/ant_version.h @@ -20,8 +20,8 @@ #define __ANT_VERSION_H
#define LIBANT_STACK_MAJOR "1"
-#define LIBANT_STACK_MINOR "6"
-#define LIBANT_STACK_INCRE "3"
+#define LIBANT_STACK_MINOR "7"
+#define LIBANT_STACK_INCRE "0"
#endif // __ANT_VERSION_H
|