Skip to content
Snippets Groups Projects
Commit 1c02ceab authored by da1l6's avatar da1l6
Browse files

CardReader, Control: Change Polarity of Card-Detection / Reader-Power-Request...

CardReader, Control: Change Polarity of Card-Detection / Reader-Power-Request pin to match the final hardware.
parent 2c89a773
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ void ISO7816_init(void){
}
uint8_t ISO7816_is_card_present(void){
return (CARD_PRESENCE_REG_PIN & (1 << CARD_PRESENCE_PIN)) != 0;
return (CARD_PRESENCE_REG_PIN & (1 << CARD_PRESENCE_PIN)) == 0;
}
uint8_t ISO7816_card_power(uint8_t on){
......
......@@ -44,7 +44,7 @@ void tick(void){
}
ISR(PCINT0_vect){
card_power_request_pin_changed((CARDREADER_POWER_REQUEST_PIN & (1 << CARDREADER_POWER_REQUEST_LINE)) != 0);
card_power_request_pin_changed((CARDREADER_POWER_REQUEST_PIN & (1 << CARDREADER_POWER_REQUEST_LINE)) == 0);
}
void sleep(void){
......@@ -84,7 +84,7 @@ int main(void){
keystore_init();
printf_P(PSTR("Keystore initialized\n"));
//log_append(LOG_EVENT_STARTUP, 0);
log_append(LOG_EVENT_STARTUP, 0);
shell_show_welcome_prompt();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment