Revision 4b7d087b
Tool stops waiting for access response if id is removed
toolbox/main.c | ||
---|---|---|
71 | 71 |
|
72 | 72 |
case TS_OFF: |
73 | 73 |
led_off(); |
74 |
set_coil(MB_COIL_EN, 0); |
|
74 | 75 |
if (serno_is_nonzero(latest_reading)) { |
75 | 76 |
serno_cpy(current_user, latest_reading); |
76 | 77 |
set_coil(MB_COIL_NEW, 1); |
... | ... | |
85 | 86 |
toolstate = TS_ON; |
86 | 87 |
} else if (!get_coil(MB_COIL_NEW)) { |
87 | 88 |
toolstate = TS_DENY; |
89 |
} else if (!serno_equal(current_user, latest_reading)) { |
|
90 |
set_coil(MB_COIL_NEW, 0); |
|
91 |
toolstate = TS_OFF; |
|
88 | 92 |
} |
89 | 93 |
break; |
90 | 94 |
|
Also available in: Unified diff