Skip to content

Commit d28022a

Browse files
committed
Increase UBX_MON_COMMS_MAX_PORTS to 7
1 parent 9c23846 commit d28022a

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

examples/Callbacks/CallbackExample8_MON_COMMS/CallbackExample8_MON_COMMS.ino

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ void setup()
143143
Wire.begin();
144144

145145
//myGNSS.enableDebugging(); // Uncomment this line to enable helpful debug messages on Serial
146+
//myGNSS.enableDebugging(Serial, true); // Uncomment this line to enable only the major debug messages on Serial
146147

147148
if (myGNSS.begin() == false) //Connect to the u-blox module using Wire port
148149
{

src/u-blox_Class_and_ID.h

+2
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ const uint8_t COM_PORT_UART2 = 2;
344344
const uint8_t COM_PORT_USB = 3;
345345
const uint8_t COM_PORT_SPI = 4;
346346

347+
// Port IDs used by MON-COMMS
348+
// UBX-18010802 - R15 also documents 0x0101 and 0x0200 - both are "Reserved"
347349
const uint16_t COM_PORT_ID_I2C = 0x0000; // Port IDs used by MON-COMMS
348350
const uint16_t COM_PORT_ID_UART1 = 0x0100;
349351
const uint16_t COM_PORT_ID_UART2 = 0x0201;

src/u-blox_structs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ typedef struct
18891889

18901890
// UBX-MON-COMMS (0x0A 0x36): Communication port information
18911891
// Note: length is variable
1892-
const uint8_t UBX_MON_COMMS_MAX_PORTS = 5; // I2C, UART1, UART2, USB, SPI
1892+
const uint16_t UBX_MON_COMMS_MAX_PORTS = 7; // I2C, UART1, UART2, USB, SPI, 0x0101, 0x0200
18931893
const uint16_t UBX_MON_COMMS_MAX_LEN = 8 + (40 * UBX_MON_COMMS_MAX_PORTS);
18941894

18951895
typedef struct

0 commit comments

Comments
 (0)