update of the corrections

This commit is contained in:
Pierre-A 2015-03-05 20:07:48 +01:00
parent af2cd4087a
commit 3a8725997b
3 changed files with 1 additions and 7 deletions

View File

@ -213,7 +213,7 @@ void hottPrepareGPSResponse(HOTT_GPS_MSG_t *hottGPSMessage)
static bool shouldTriggerVoiceAlarmNow(void) 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) static inline void updateAlarmBatteryStatus(HOTT_EAM_MSG_t *hottEAMMessage)

View File

@ -48,11 +48,6 @@ static bool telemetryPortIsShared;
static telemetryConfig_t *telemetryConfig; static telemetryConfig_t *telemetryConfig;
uint8_t useHottAlarmSoundInterval(void)
{
return telemetryConfig->hottAlarmSoundInterval;
}
void useTelemetryConfig(telemetryConfig_t *telemetryConfigToUse) void useTelemetryConfig(telemetryConfig_t *telemetryConfigToUse)
{ {
telemetryConfig = telemetryConfigToUse; telemetryConfig = telemetryConfigToUse;

View File

@ -60,6 +60,5 @@ uint32_t getTelemetryProviderBaudRate(void);
void useTelemetryConfig(telemetryConfig_t *telemetryConfig); void useTelemetryConfig(telemetryConfig_t *telemetryConfig);
bool telemetryAllowsOtherSerial(int serialPortFunction); bool telemetryAllowsOtherSerial(int serialPortFunction);
bool isTelemetryPortShared(void); bool isTelemetryPortShared(void);
uint8_t useHottAlarmSoundInterval (void);
#endif /* TELEMETRY_COMMON_H_ */ #endif /* TELEMETRY_COMMON_H_ */