From 366ad09e673bf702ba64390e15bac44fe18bc0ac Mon Sep 17 00:00:00 2001 From: Edd Inglis Date: Fri, 7 Sep 2018 10:19:01 +0100 Subject: [PATCH] Changed the reported SNR from unsigned to signed. Internally and logically it is a signed value. --- features/lorawan/lorawan_types.h | 2 +- features/lorawan/system/lorawan_data_structures.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/lorawan/lorawan_types.h b/features/lorawan/lorawan_types.h index 9d7edb7ae6..186eda07a1 100644 --- a/features/lorawan/lorawan_types.h +++ b/features/lorawan/lorawan_types.h @@ -665,7 +665,7 @@ typedef struct { /** * The SNR for the received packet. */ - uint8_t snr; + int8_t snr; /** * A boolean to mark if the meta data is stale */ diff --git a/features/lorawan/system/lorawan_data_structures.h b/features/lorawan/system/lorawan_data_structures.h index e3f2418820..fcf9d88f35 100644 --- a/features/lorawan/system/lorawan_data_structures.h +++ b/features/lorawan/system/lorawan_data_structures.h @@ -666,7 +666,7 @@ typedef struct { /*! * The SNR of the received packet. */ - uint8_t snr; + int8_t snr; /*! * The receive window. *