From 3dc1f0838f6ff0256961462cbc7f3ad49bca0870 Mon Sep 17 00:00:00 2001 From: Manfred Steiner Date: Thu, 15 Aug 2024 14:46:20 +0200 Subject: [PATCH] Fix cc1101 rssi data type --- software/nano-644/test_2024-07-23/src/units/cc1101.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/nano-644/test_2024-07-23/src/units/cc1101.hpp b/software/nano-644/test_2024-07-23/src/units/cc1101.hpp index e067650..a861f09 100644 --- a/software/nano-644/test_2024-07-23/src/units/cc1101.hpp +++ b/software/nano-644/test_2024-07-23/src/units/cc1101.hpp @@ -13,7 +13,7 @@ class Cc1101 : public TestUnit { typedef enum { Test, Send, Receive } Cc1101Mode; typedef enum { _IDLE = 0, _RX = 1, _TX = 2, _FSTXON = 3, _CALIBRATE = 4, _SETTLING = 5, _RXFIFO_OVFL = 6, _TXFIFO_UNFL = 7 } StatusState_t; typedef struct { uint8_t fifoBytes:4; StatusState_t state:3; uint8_t chipNotReady:1; } Status_t; - typedef struct { uint8_t rssi:8; uint8_t lqi:7; uint8_t crcOk:1; } ReceivedPacketStatus_t; // CC1101 datasheet page 37 + typedef struct { int8_t rssi:8; uint8_t lqi:7; uint8_t crcOk:1; } ReceivedPacketStatus_t; // CC1101 datasheet page 37 union { struct { union { -- 2.39.5