Project

General

Profile

Revision 1085ef77

ID1085ef7751b530b21865d0ca7d23786578749364
Parent 1b054655
Child 215b2fa6

Added by Thomas Mullins over 11 years ago

Made rfid.c more robust against false negatives

Also changed LED code to be more generally usable, and changed mainbox
to grant access to a particular user id instead of randomly choosing

View differences:

toolbox/main.c
33 33
static inline void tool_enable() {PORTA |= _BV(PA1);}
34 34
static inline void tool_disable() {PORTA &= ~ _BV(PA1);}
35 35

  
36
static char serno_zero(uint8_t *serno) {
36
static inline void serno_zero(uint8_t *serno) {
37 37
  memset(serno, 0, RFID_SERNO_SIZE);
38 38
}
39 39

  
......
131 131
        toolstate = TS_REQ_DIS;
132 132
      } else if (!serno_equal(current_user, latest_reading)) {
133 133
        toolstate = TS_MISSING_ID;
134
        led_blink_start(666, 6);
134
        led_blink_start(666, 15, YELLOW);
135 135
      }
136 136
      break;
137 137

  

Also available in: Unified diff