mirror of
https://github.com/usatiuk/cardboy.git
synced 2025-10-28 23:27:49 +01:00
fixie
This commit is contained in:
@@ -836,12 +836,12 @@ void notificationTask(void* /*param*/) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool sent = false;
|
bool sent = false;
|
||||||
for (uint8_t attempt = 0; attempt < 20; ++attempt) {
|
while (g_activeConnHandle != BLE_HS_CONN_HANDLE_NONE) {
|
||||||
if (sendFileResponseNow(msg)) {
|
if (sendFileResponseNow(msg)) {
|
||||||
sent = true;
|
sent = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
vTaskDelay(pdMS_TO_TICKS(5));
|
vTaskDelay(pdMS_TO_TICKS(100));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sent) {
|
if (!sent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user