mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-07-23 06:50:49 -04:00
Work on ESP32 compatibility
This commit is contained in:
parent
9ba4ceaa12
commit
8a51a03a24
3 changed files with 154 additions and 126 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue