remove byte usage

This commit is contained in:
Mestery 2023-04-16 21:00:05 +02:00
parent f37c0b55c0
commit 0cf308be04
3 changed files with 2 additions and 4 deletions

View file

@ -273,8 +273,6 @@
#include <algorithm>
#include <stdint.h>
typedef uint8_t byte;
using std::max;
using std::min;
#endif

View file

@ -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

View file

@ -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);