Project

General

Profile

Revision 4b7d087b

ID4b7d087bb806b2b1057ef5fd1bb1571558f62f02
Parent 420df25b
Child 10936c07

Added by Thomas Mullins over 11 years ago

Tool stops waiting for access response if id is removed

View differences:

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