From 4a07adbac5e6fca7c3a6d3f52c4833598fb36909 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 6f57c3c061c..2ae126bb54e 100644 --- a/features/lorawan/lorawan_types.h +++ b/features/lorawan/lorawan_types.h @@ -663,7 +663,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 038248fa8df..f5b64925e51 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. *