Revision 1085ef77
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
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