File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2300,6 +2300,7 @@ void PIN_ticks(void* param)
23002300 g_cfg .pins .roles [i ] == IOR_DigitalInput_NoPup || g_cfg .pins .roles [i ] == IOR_DigitalInput_NoPup_n
23012301 || g_cfg .pins .roles [i ] == IOR_DoorSensorWithDeepSleep || g_cfg .pins .roles [i ] == IOR_DoorSensorWithDeepSleep_NoPup
23022302 || g_cfg .pins .roles [i ] == IOR_DoorSensorWithDeepSleep_pd ) {
2303+
23032304 // read pin digital value (and already invert it if needed)
23042305 value = PIN_ReadDigitalInputValue_WithInversionIncluded (i );
23052306
@@ -2312,7 +2313,9 @@ void PIN_ticks(void* param)
23122313 if (g_lastValidState [i ] != value ) {
23132314 // became up
23142315 g_lastValidState [i ] = value ;
2315- CHANNEL_Set (g_cfg .pins .channels [i ], value , 0 );
2316+ if (CFG_HasFlag (OBK_FLAG_BUTTON_DISABLE_ALL ) == false) {
2317+ CHANNEL_Set (g_cfg .pins .channels [i ], value , 0 );
2318+ }
23162319 }
23172320 }
23182321 else {
@@ -2325,7 +2328,9 @@ void PIN_ticks(void* param)
23252328 if (g_lastValidState [i ] != value ) {
23262329 // became down
23272330 g_lastValidState [i ] = value ;
2328- CHANNEL_Set (g_cfg .pins .channels [i ], value , 0 );
2331+ if (CFG_HasFlag (OBK_FLAG_BUTTON_DISABLE_ALL ) == false) {
2332+ CHANNEL_Set (g_cfg .pins .channels [i ], value , 0 );
2333+ }
23292334 }
23302335 }
23312336 else {
You can’t perform that action at this time.
0 commit comments