Skip to content

Commit 6a9a7ee

Browse files
committed
fix SBUS
1 parent 842ff0a commit 6a9a7ee

File tree

7 files changed

+86
-421
lines changed

7 files changed

+86
-421
lines changed

src/madflight/gps/GPS-uBlox/qqqlab_GPS_UBLOX.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void *memmem(const void *haystack, size_t haystacklen, const void *needle, size_
101101
# define MB_Debug(fmt, args ...)
102102
#endif
103103

104-
#if UBLOX_CFG_DEBUGGINGt
104+
#if UBLOX_CFG_DEBUGGING
105105
# define CFG_Debug(fmt, args ...) do {interface_printf("%s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); } while(0)
106106
#else
107107
# define CFG_Debug(fmt, args ...)
@@ -2254,7 +2254,8 @@ void AP_GPS_UBLOX::update2() {
22542254
if (!result) {
22552255
if (tnow - timing.last_message_time_ms > GPS_TIMEOUT_MS) {
22562256
interface_printf("LOST CONNECTION\n");
2257-
memset((void *)&state, 0, sizeof(state));
2257+
//memset((void *)&state, 0, sizeof(state));
2258+
state = {};
22582259
state->hdop = GPS_UNKNOWN_DOP;
22592260
state->vdop = GPS_UNKNOWN_DOP;
22602261
// timing.last_message_time_ms = tnow;

src/madflight/hal/RP2040/MF_SerialPIO_RP2040.h

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/madflight/hal/RP2040/MF_SerialUART_RP2040.h

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)