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:

mainbox/tool.c
102 102
      if (status[MB_COIL_NEW]) {
103 103
        tool_read_user(tool);
104 104
        // TODO check actual credentials
105
        if (rand() & 1) {
105
        if (tool->user == 0x023acbf6) {
106 106
          tool_grant_access(tool);
107 107
        } else {
108 108
          tool_deny_access(tool);

Also available in: Unified diff