Work on ESP32 compatibility

This commit is contained in:
Mark Qvist 2022-01-10 22:14:30 +01:00
parent 9ba4ceaa12
commit 8a51a03a24
3 changed files with 154 additions and 126 deletions

View file

@ -381,15 +381,15 @@ void kiss_indicate_mcu() {
Serial.write(FEND);
}
bool isSplitPacket(uint8_t header) {
inline bool isSplitPacket(uint8_t header) {
return (header & FLAG_SPLIT);
}
uint8_t packetSequence(uint8_t header) {
inline uint8_t packetSequence(uint8_t header) {
return header >> 4;
}
void getPacketData(int len) {
inline void getPacketData(int len) {
while (len--) {
pbuf[read_len++] = LoRa.read();
}