Revision 1b054655 mainbox/tool.c

View differences:

mainbox/tool.c
85 85
    return;
86 86
  }
87 87

  
88
  printf("new:%d en:%d req_dis:%d init:%d\n", status[MB_COIL_NEW],
89
      status[MB_COIL_EN], status[MB_COIL_REQ_DIS], status[MB_COIL_INIT]);
88
  /*printf("new:%d en:%d req_dis:%d init:%d\n", status[MB_COIL_NEW],
89
      status[MB_COIL_EN], status[MB_COIL_REQ_DIS], status[MB_COIL_INIT]);*/
90 90

  
91 91
  if (!status[MB_COIL_INIT]) {
92 92
    tool->state = TS_INIT;
......
102 102
      if (status[MB_COIL_NEW]) {
103 103
        tool_read_user(tool);
104 104
        // TODO check actual credentials
105
        printf("user:%08x\n", tool->user);
106
        //if (rand() & 1) {
105
        if (rand() & 1) {
107 106
          tool_grant_access(tool);
108
        /*} else {
107
        } else {
109 108
          tool_deny_access(tool);
110
        }*/
109
        }
111 110
      }
112 111
      break;
113 112

  

Also available in: Unified diff