From 7a4d221aaae2fcba04b4c6b98552052e802a14a9 Mon Sep 17 00:00:00 2001 From: Gustavo de Souza dos Reis Date: Mon, 29 Jan 2024 13:10:01 -0300 Subject: [PATCH] Fix the if statement for correctly use the standalone mode --- modules/sensors/hotswap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/sensors/hotswap.c b/modules/sensors/hotswap.c index 4a5cdab6c..375733202 100644 --- a/modules/sensors/hotswap.c +++ b/modules/sensors/hotswap.c @@ -153,7 +153,7 @@ void vTaskHotSwap( void *Parameters ) hotswap_clear_mask_bit( HOTSWAP_AMC, 1 << (!new_state_amc) ); old_state_amc = new_state_amc; } - if (!standalone_mode) { + if (standalone_mode) { old_state_amc = new_state_amc; } } @@ -173,13 +173,13 @@ void vTaskHotSwap( void *Parameters ) if ( new_state_rtm == 0 ) { printf("RTM Hotswap handle pressed!\n"); - if (!standalone_mode) { + if (standalone_mode) { payload_send_message(FRU_RTM, PAYLOAD_MESSAGE_RTM_ENABLE); } } else { printf("RTM Hotswap handle released!\n"); - if (!standalone_mode) { + if (standalone_mode) { payload_send_message(FRU_RTM, PAYLOAD_MESSAGE_QUIESCE); } @@ -190,7 +190,7 @@ void vTaskHotSwap( void *Parameters ) old_state_rtm = new_state_rtm; } - if (!standalone_mode) { + if (standalone_mode) { old_state_rtm = new_state_rtm; }