Index: firmware/App/Drivers/CPLD.c =================================================================== diff -u -rbe83f01a4d54cbd0d92b68cb95a15dcbb06a9a51 -rd9cc76524777a12ba77b58ce95416dddfb032997 --- firmware/App/Drivers/CPLD.c (.../CPLD.c) (revision be83f01a4d54cbd0d92b68cb95a15dcbb06a9a51) +++ firmware/App/Drivers/CPLD.c (.../CPLD.c) (revision d9cc76524777a12ba77b58ce95416dddfb032997) @@ -229,7 +229,8 @@ PIN_SIGNAL_STATE_T level = GET_OFF(); #ifdef RM46_EVAL_BOARD_TARGET - level = (level == PIN_SIGNAL_LOW ? PIN_SIGNAL_HIGH : PIN_SIGNAL_LOW); + // temporary test code for eval board - buttons have opposite polarity + level = GET_TOGGLE( level, PIN_SIGNAL_LOW, PIN_SIGNAL_LOW ); #endif return level; @@ -250,7 +251,8 @@ PIN_SIGNAL_STATE_T level = GET_STOP(); #ifdef RM46_EVAL_BOARD_TARGET - level = (level == PIN_SIGNAL_LOW ? PIN_SIGNAL_HIGH : PIN_SIGNAL_LOW); + // temporary test code for eval board - buttons have opposite polarity + level = GET_TOGGLE( level, PIN_SIGNAL_LOW, PIN_SIGNAL_LOW ); #endif return level;