Fixed several issues:
- ADC has now averaging - Pause screen added - Fixed display glitches for most parts git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@258 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -145,16 +145,28 @@ static void InterlockTask (void* parameters)
|
||||
|
||||
while(1)
|
||||
{
|
||||
// Interlock was OK when the IRQ became active
|
||||
// This tasks debounces the Interlock against accidental detections
|
||||
// THe semaphore is given from ISR
|
||||
xSemaphoreTake(self->semaphore, portMAX_DELAY);
|
||||
// Wait for the debounce time
|
||||
vTaskDelay(self->waitToDebounce_ms);
|
||||
|
||||
if (self->ID == COMMON_INTERLOCK)
|
||||
// Check if the Interrupt was justified
|
||||
if (!Interlock_isClosed(self))
|
||||
{
|
||||
Error_postError(INTERLOCK_COMMON_FAIL);
|
||||
// The Interlock is open, so the Interrupt was justified
|
||||
if (self->ID == COMMON_INTERLOCK)
|
||||
{
|
||||
Error_postError(INTERLOCK_COMMON_FAIL);
|
||||
}
|
||||
else if (self->ID == TESLA_INTERLOCK)
|
||||
{
|
||||
Error_postError(INTERLOCK_TESLA_FAIL);
|
||||
}
|
||||
}
|
||||
else if (self->ID == TESLA_INTERLOCK)
|
||||
else
|
||||
{
|
||||
Error_postError(INTERLOCK_TESLA_FAIL);
|
||||
// False alarm
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user