File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,33 @@ uint8_t zedModuleType = PLATFORM_F9P; //Controls which messages are supported an
232232
233233SFE_UBLOX_GNSS_SUPER theGNSS;
234234
235+ // // Use Michael's lock/unlock methods to prevent the UART2 task from calling checkUblox during a sendCommand and waitForResponse.
236+ // // Also prevents pushRawData from being called too.
237+ // class SFE_UBLOX_GNSS_SUPER_DERIVED : public SFE_UBLOX_GNSS_SUPER
238+ // {
239+ // public:
240+ // volatile bool _iAmLocked = false;
241+ // bool lock(void)
242+ // {
243+ // if (_iAmLocked)
244+ // {
245+ // unsigned long startTime = millis();
246+ // while (_iAmLocked && (millis() < (startTime + 2200)))
247+ // delay(1); // YIELD
248+ // if (_iAmLocked)
249+ // return false;
250+ // }
251+ // _iAmLocked = true;
252+ // return true;
253+ // }
254+ // void unlock(void)
255+ // {
256+ // _iAmLocked = false;
257+ // }
258+ // };
259+ //
260+ // SFE_UBLOX_GNSS_SUPER_DERIVED theGNSS;
261+
235262// These globals are updated regularly via the storePVTdata callback
236263bool pvtUpdated = false ;
237264double latitude;
You can’t perform that action at this time.
0 commit comments