diff --git a/src/BuildOpt.h b/src/BuildOpt.h index 8bded0cc..cf219cfd 100644 --- a/src/BuildOpt.h +++ b/src/BuildOpt.h @@ -273,8 +273,6 @@ #include #include - typedef uint8_t byte; - using std::max; using std::min; #endif diff --git a/src/protocols/Morse/Morse.cpp b/src/protocols/Morse/Morse.cpp index da5b57ff..afbb03a7 100644 --- a/src/protocols/Morse/Morse.cpp +++ b/src/protocols/Morse/Morse.cpp @@ -58,7 +58,7 @@ char MorseClient::decode(uint8_t symbol, uint8_t len) { } #if !defined(RADIOLIB_EXCLUDE_AFSK) -int MorseClient::read(byte* symbol, byte* len, float low, float high) { +int MorseClient::read(uint8_t* symbol, uint8_t* len, float low, float high) { Module* mod = _phy->getMod(); // measure pulse duration in us diff --git a/src/protocols/Morse/Morse.h b/src/protocols/Morse/Morse.h index fe60cc7c..3f0fc5cb 100644 --- a/src/protocols/Morse/Morse.h +++ b/src/protocols/Morse/Morse.h @@ -153,7 +153,7 @@ class MorseClient { \returns 0 if not enough symbols were decoded, 1 if inter-character space was detected, 2 if inter-word space was detected. */ #if !defined(RADIOLIB_EXCLUDE_AFSK) - int read(byte* symbol, byte* len, float low = 0.75f, float high = 1.25f); + int read(uint8_t* symbol, uint8_t* len, float low = 0.75f, float high = 1.25f); #endif size_t write(const char* str);