clean up
This commit is contained in:
7
reader.c
7
reader.c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user