From 37477bf5317d111a264fcb87ff27b0b5912d93cd Mon Sep 17 00:00:00 2001 From: Paul Clark Date: Wed, 26 Jun 2019 21:42:48 +0100 Subject: [PATCH] Update SparkFun_Ublox_Arduino_Library.h --- src/SparkFun_Ublox_Arduino_Library.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/SparkFun_Ublox_Arduino_Library.h b/src/SparkFun_Ublox_Arduino_Library.h index cc963c1..6d406c4 100644 --- a/src/SparkFun_Ublox_Arduino_Library.h +++ b/src/SparkFun_Ublox_Arduino_Library.h @@ -148,9 +148,10 @@ const uint8_t VAL_SIZE_16 = 0x03; //Two bytes const uint8_t VAL_SIZE_32 = 0x04; //Four bytes const uint8_t VAL_SIZE_64 = 0x05; //Eight bytes -const uint8_t VAL_LAYER_RAM = 0; -const uint8_t VAL_LAYER_BBR = 1; -const uint8_t VAL_LAYER_FLASH = 2; +//These are the Bitfield layers definitions for the UBX-CFG-VALSET message (not to be confused with Bitfield deviceMask in UBX-CFG-CFG) +const uint8_t VAL_LAYER_RAM = (1 << 0); +const uint8_t VAL_LAYER_BBR = (1 << 1); +const uint8_t VAL_LAYER_FLASH = (1 << 2); const uint8_t VAL_LAYER_DEFAULT = 7; //Below are various Groups, IDs, and sizes for various settings