update of the corrections
This commit is contained in:
parent
af2cd4087a
commit
3a8725997b
|
@ -213,7 +213,7 @@ void hottPrepareGPSResponse(HOTT_GPS_MSG_t *hottGPSMessage)
|
|||
|
||||
static bool shouldTriggerVoiceAlarmNow(void)
|
||||
{
|
||||
return ((millis() - lastHottAlarmSoundTime) >= (useHottAlarmSoundInterval() * MILLISECONDS_IN_A_SECOND));
|
||||
return ((millis() - lastHottAlarmSoundTime) >= (telemetryConfig->hottAlarmSoundInterval * MILLISECONDS_IN_A_SECOND));
|
||||
}
|
||||
|
||||
static inline void updateAlarmBatteryStatus(HOTT_EAM_MSG_t *hottEAMMessage)
|
||||
|
|
|
@ -48,11 +48,6 @@ static bool telemetryPortIsShared;
|
|||
|
||||
static telemetryConfig_t *telemetryConfig;
|
||||
|
||||
|
||||
uint8_t useHottAlarmSoundInterval(void)
|
||||
{
|
||||
return telemetryConfig->hottAlarmSoundInterval;
|
||||
}
|
||||
void useTelemetryConfig(telemetryConfig_t *telemetryConfigToUse)
|
||||
{
|
||||
telemetryConfig = telemetryConfigToUse;
|
||||
|
|
|
@ -60,6 +60,5 @@ uint32_t getTelemetryProviderBaudRate(void);
|
|||
void useTelemetryConfig(telemetryConfig_t *telemetryConfig);
|
||||
bool telemetryAllowsOtherSerial(int serialPortFunction);
|
||||
bool isTelemetryPortShared(void);
|
||||
uint8_t useHottAlarmSoundInterval (void);
|
||||
|
||||
#endif /* TELEMETRY_COMMON_H_ */
|
||||
|
|
Loading…
Reference in New Issue