From 1d21fe302acfa762bed1af6ff7f67762508690d7 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Thu, 30 May 2019 14:45:04 -0400 Subject: [PATCH] Extra way to define yield --- src/TinyGsmCommon.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/TinyGsmCommon.h b/src/TinyGsmCommon.h index 7b87633..2bb225c 100644 --- a/src/TinyGsmCommon.h +++ b/src/TinyGsmCommon.h @@ -30,8 +30,12 @@ #include +#ifndef TINY_GSM_YIELD_MS + #define TINY_GSM_YIELD_MS 0 +#endif + #ifndef TINY_GSM_YIELD - #define TINY_GSM_YIELD() { delay(0); } + #define TINY_GSM_YIELD() { delay(TINY_GSM_YIELD_MS); } #endif #define TINY_GSM_ATTR_NOT_AVAILABLE __attribute__((error("Not available on this modem type"))) @@ -446,7 +450,7 @@ String TinyGsmDecodeHex16bit(String &instr) { // modem has no internal fifo #define TINY_GSM_MODEM_MAINTAIN_LISTEN() \ void maintain() { \ - waitResponse(10, NULL, NULL); \ + waitResponse(100, NULL, NULL); \ }