From f066bcb2d9a535ea84bc923ec800c660209c1223 Mon Sep 17 00:00:00 2001 From: Corvus Corax Date: Sun, 16 Feb 2014 12:50:40 +0100 Subject: [PATCH] OP-942 changed enum term from HARMLESS to WARNING as requested --- flight/modules/System/systemmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flight/modules/System/systemmod.c b/flight/modules/System/systemmod.c index 0e6ef84db..7849211cd 100644 --- a/flight/modules/System/systemmod.c +++ b/flight/modules/System/systemmod.c @@ -96,7 +96,7 @@ static uint32_t idleCounter; static uint32_t idleCounterClear; static xTaskHandle systemTaskHandle; static xQueueHandle objectPersistenceQueue; -static enum { STACKOVERFLOW_NONE = 0, STACKOVERFLOW_HARMLESS = 1, STACKOVERFLOW_CRITICAL = 3 } stackOverflow; +static enum { STACKOVERFLOW_NONE = 0, STACKOVERFLOW_WARNING = 1, STACKOVERFLOW_CRITICAL = 3 } stackOverflow; static bool mallocFailed; static HwSettingsData bootHwSettings; static struct PIOS_FLASHFS_Stats fsStats; @@ -456,7 +456,7 @@ static void callbackSchedulerForEachCallback(int16_t callback_id, const struct p } // delayed callback scheduler reports callback stack overflows as remaininng: -1 if (callback_info->stack_remaining < 0 && stackOverflow == STACKOVERFLOW_NONE) { - stackOverflow = STACKOVERFLOW_HARMLESS; + stackOverflow = STACKOVERFLOW_WARNING; } // By convention, there is a direct mapping between (not negative) callback scheduler callback_id's and members // of the CallbackInfoXXXXElem enums @@ -631,7 +631,7 @@ static void updateSystemAlarms() case STACKOVERFLOW_NONE: AlarmsClear(SYSTEMALARMS_ALARM_STACKOVERFLOW); break; - case STACKOVERFLOW_HARMLESS: + case STACKOVERFLOW_WARNING: AlarmsSet(SYSTEMALARMS_ALARM_STACKOVERFLOW, SYSTEMALARMS_ALARM_WARNING); break; default: