From cc06be04de4cb19dbca8be14433b2531e5dded68 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 1 Aug 2020 16:36:18 +0200 Subject: [PATCH] [PHY] Added Module overrides for all Arduino core functions --- src/protocols/PhysicalLayer/PhysicalLayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/PhysicalLayer/PhysicalLayer.cpp b/src/protocols/PhysicalLayer/PhysicalLayer.cpp index 9bb8e322..b0174c51 100644 --- a/src/protocols/PhysicalLayer/PhysicalLayer.cpp +++ b/src/protocols/PhysicalLayer/PhysicalLayer.cpp @@ -10,7 +10,7 @@ int16_t PhysicalLayer::transmit(__FlashStringHelper* fstr, uint8_t addr) { size_t len = 0; PGM_P p = reinterpret_cast(fstr); while(true) { - char c = pgm_read_byte(p++); + char c = RADIOLIB_PROGMEM_READ_BYTE(p++); len++; if(c == '\0') { break; @@ -27,7 +27,7 @@ int16_t PhysicalLayer::transmit(__FlashStringHelper* fstr, uint8_t addr) { // copy string from flash p = reinterpret_cast(fstr); for(size_t i = 0; i < len; i++) { - str[i] = pgm_read_byte(p + i); + str[i] = RADIOLIB_PROGMEM_READ_BYTE(p + i); } // transmit string