Skip to content

Commit

Permalink
door status code fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hanez committed Feb 6, 2013
1 parent 951b393 commit cacb626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dooris.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ void get_bouncer_data() {
printf("DHCP last change: = %d\n", dhcp_last_change);
printf("DHCP last update: = %d\n", dhcp_last_update);

if (door_status == 0) {
if (door_status == 1) {
door_open = false;
} else if (door_status > 0) {
} else if (door_status == 0) {
door_open = true;
}
user_count = dhcp_status - not_real_users;
Expand Down

0 comments on commit cacb626

Please sign in to comment.