mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00
Merge branch 'master' into tft-gui-work
This commit is contained in:
commit
d502e46b03
@ -1253,9 +1253,6 @@ GnssModel_t GPS::probe(int serialSpeed)
|
|||||||
LOG_INFO("Aioha AG3335 detected, using AG3335 Module\n");
|
LOG_INFO("Aioha AG3335 detected, using AG3335 Module\n");
|
||||||
return GNSS_MODEL_AG3335;
|
return GNSS_MODEL_AG3335;
|
||||||
}
|
}
|
||||||
// Get version information for Airoha AG3335
|
|
||||||
clearBuffer();
|
|
||||||
_serial_gps->write("$PMTK605*31\r\n");
|
|
||||||
|
|
||||||
// Get version information
|
// Get version information
|
||||||
clearBuffer();
|
clearBuffer();
|
||||||
@ -1844,4 +1841,4 @@ void GPS::toggleGpsMode()
|
|||||||
enable();
|
enable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // Exclude GPS
|
#endif // Exclude GPS
|
||||||
|
@ -420,7 +420,7 @@ void RadioInterface::applyModemConfig()
|
|||||||
|
|
||||||
switch (loraConfig.modem_preset) {
|
switch (loraConfig.modem_preset) {
|
||||||
case meshtastic_Config_LoRaConfig_ModemPreset_SHORT_TURBO:
|
case meshtastic_Config_LoRaConfig_ModemPreset_SHORT_TURBO:
|
||||||
bw = (myRegion->wideLora) ? 812.5 : 500;
|
bw = (myRegion->wideLora) ? 1625.0 : 500;
|
||||||
cr = 5;
|
cr = 5;
|
||||||
sf = 7;
|
sf = 7;
|
||||||
break;
|
break;
|
||||||
|
@ -146,7 +146,11 @@ bool PositionModule::hasQualityTimesource()
|
|||||||
{
|
{
|
||||||
bool setFromPhoneOrNtpToday =
|
bool setFromPhoneOrNtpToday =
|
||||||
lastSetFromPhoneNtpOrGps == 0 ? false : (millis() - lastSetFromPhoneNtpOrGps) <= (SEC_PER_DAY * 1000UL);
|
lastSetFromPhoneNtpOrGps == 0 ? false : (millis() - lastSetFromPhoneNtpOrGps) <= (SEC_PER_DAY * 1000UL);
|
||||||
|
#if MESHTASTIC_EXCLUDE_GPS
|
||||||
|
bool hasGpsOrRtc = (rtc_found.address != ScanI2C::ADDRESS_NONE.address);
|
||||||
|
#else
|
||||||
bool hasGpsOrRtc = (gps && gps->isConnected()) || (rtc_found.address != ScanI2C::ADDRESS_NONE.address);
|
bool hasGpsOrRtc = (gps && gps->isConnected()) || (rtc_found.address != ScanI2C::ADDRESS_NONE.address);
|
||||||
|
#endif
|
||||||
return hasGpsOrRtc || setFromPhoneOrNtpToday;
|
return hasGpsOrRtc || setFromPhoneOrNtpToday;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user