Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 0c49e08

Browse files
authored
Merge pull request #24 from PaulZC/VAL_LAYER-fix-(Issue-#22)
Updated VAL_LAYER definitions in SparkFun_Ublox_Arduino_Library.h (Issue #22)
2 parents 6c6413a + 37477bf commit 0c49e08

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/SparkFun_Ublox_Arduino_Library.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,10 @@ const uint8_t VAL_SIZE_16 = 0x03; //Two bytes
148148
const uint8_t VAL_SIZE_32 = 0x04; //Four bytes
149149
const uint8_t VAL_SIZE_64 = 0x05; //Eight bytes
150150

151-
const uint8_t VAL_LAYER_RAM = 0;
152-
const uint8_t VAL_LAYER_BBR = 1;
153-
const uint8_t VAL_LAYER_FLASH = 2;
151+
//These are the Bitfield layers definitions for the UBX-CFG-VALSET message (not to be confused with Bitfield deviceMask in UBX-CFG-CFG)
152+
const uint8_t VAL_LAYER_RAM = (1 << 0);
153+
const uint8_t VAL_LAYER_BBR = (1 << 1);
154+
const uint8_t VAL_LAYER_FLASH = (1 << 2);
154155
const uint8_t VAL_LAYER_DEFAULT = 7;
155156

156157
//Below are various Groups, IDs, and sizes for various settings

0 commit comments

Comments
 (0)