Skip to content

Commit 7512eb0

Browse files
Jakob Rieplerkartben
authored andcommitted
drivers: fix support for U-Blox M10 modules with M8 driver
The U-Blox M10 seems to interleave UBX and NMEA messages in a way that confuses the M8 driver leading to missing the same message that directly follows the UBX part every time (leading to no navigation updates). As the driver does not parse the UBX blocks during normal operation anyways it can just be disabled. Signed-off-by: Jakob Riepler <[email protected]>
1 parent 248f797 commit 7512eb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gnss/gnss_u_blox_m8.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ static int ubx_m8_ubx_cfg_prt_set(const struct device *dev, uint32_t target_baud
300300

301301
ubx_cfg_prt_set_payload_default(&payload);
302302
payload.baudrate = target_baudrate;
303+
payload.out_proto_mask = UBX_CFG_PRT_OUT_PROTO_NMEA;
303304

304305
ret = ubx_m8_modem_ubx_script_init(dev, &payload, UBX_CFG_PRT_SET_PAYLOAD_SZ,
305306
UBX_CLASS_CFG, UBX_CFG_PRT);

0 commit comments

Comments
 (0)