This commit is contained in:
Martijn Scheepers
2019-07-11 14:16:26 +02:00
parent b157063f92
commit 089c1ce25f
2 changed files with 0 additions and 8 deletions

View File

@@ -68,7 +68,6 @@ void readerrequest(struct reader_t *reader, struct config_t *config){
}
free(log);
}
//else if (reader->state == UNKNOWNERROR || reader->state == CONNECTIONTIMEOUT || reader->state == RESOLVEERROR || reader->state == SERVERERROR || reader->state == CREDENTIALERROR){
else{
if(mf700_controlcommand(reader, 0, EVERYLEDON) == ERROR){
exitprogram(EXIT_FAILURE);
@@ -76,11 +75,5 @@ void readerrequest(struct reader_t *reader, struct config_t *config){
if(mf700_controlcommand(reader, 5, BUZZER3TIME) == ERROR){
exitprogram(EXIT_FAILURE);
}
//}else{
// char *log;
// if(asprintf(&log, "Unknown state from server: %d\n", reader->state) > 0 ){
// writesyslog(LOG_ERR, log);
// }
// free(log);
}
}

View File

@@ -71,7 +71,6 @@ void relay_timer_handler(union sigval arg){
relaytimersemaphore -= 1;
if(relaytimersemaphore == 0){
//relay_switch(RELAY_OFF, 0, config);
relay_set_state(RELAY_OFF, config);
}
}