mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2024-10-01 03:15:39 -04:00
Fix RAK4630 compilation error and SX1280 modemStatus logic
This commit is contained in:
parent
c31cba0fd8
commit
39718693e6
1
Boards.h
1
Boards.h
@ -14,6 +14,7 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#include "Modem.h"
|
#include "Modem.h"
|
||||||
|
#include <variant.h>
|
||||||
|
|
||||||
#ifndef BOARDS_H
|
#ifndef BOARDS_H
|
||||||
#define BOARDS_H
|
#define BOARDS_H
|
||||||
|
@ -467,13 +467,13 @@ uint8_t sx128x::modemStatus() {
|
|||||||
|
|
||||||
uint8_t byte = 0x00;
|
uint8_t byte = 0x00;
|
||||||
|
|
||||||
if (buf[0] & IRQ_PREAMBLE_DET_MASK_8X != 0) {
|
if ((buf[0] & IRQ_PREAMBLE_DET_MASK_8X) != 0) {
|
||||||
byte = byte | 0x01 | 0x04;
|
byte = byte | 0x01 | 0x04;
|
||||||
// clear register after reading
|
// clear register after reading
|
||||||
clearbuf[0] = 0xFF;
|
clearbuf[0] = 0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf[1] & IRQ_HEADER_DET_MASK_8X != 0) {
|
if ((buf[1] & IRQ_HEADER_DET_MASK_8X) != 0) {
|
||||||
byte = byte | 0x02 | 0x04;
|
byte = byte | 0x02 | 0x04;
|
||||||
// clear register after reading
|
// clear register after reading
|
||||||
clearbuf[1] = 0xFF;
|
clearbuf[1] = 0xFF;
|
||||||
|
Loading…
Reference in New Issue
Block a user