i2cPollingWait improvements

This commit is contained in:
PaulZC
2021-08-10 12:21:13 +01:00
parent 5039e51315
commit cad5529aa5
2 changed files with 70 additions and 22 deletions
@@ -1351,6 +1351,8 @@ private:
//If we are expecting an update every X Hz then we should check every quarter that amount of time
//Otherwise we may block ourselves from seeing new data
uint8_t i2cPollingWait = 100; //Default to 100ms. Adjusted when user calls setNavigationFrequency() or setHNRNavigationRate() or setMeasurementRate()
uint8_t i2cPollingWaitNAV = 100; //We need to record the desired polling rate for standard nav messages
uint8_t i2cPollingWaitHNR = 100; //and for HNR too so we can set i2cPollingWait to the lower of the two
//The SPI polling wait is a little different. checkUbloxSpi will delay for this amount before returning if
//there is no data waiting to be read. This prevents waitForACKResponse from pounding the SPI bus too hard.