Browse code

Update Login at PC with Arduino + RFID

Stefan Höhn authored on15/01/2017 06:16:48 • GitHub committed on15/01/2017 06:16:48
Showing1 changed files

... ...
@@ -37,9 +37,10 @@ if (z == bytes_from_RFID)
37 37
  keyvalue = (keyvalue + key[3]);
38 38
  keyvalue = (keyvalue + key[4]);
39 39
  keyvalue = (keyvalue + key[5]);
40
- if (keyvalue == "Put in the 5 bytes provided by serial monitor without spaces!")
40
+ //--------------Put in the 5 bytes provided by serial monitor without spaces!
41
+ if (keyvalue == 12345)
41 42
    {
42
-//------- \n after password means Newline or ENTER
43
+//------- Put in your password. \n after password means Newline or ENTER
43 44
  Keyboard.print("topsecretPW\n");
44 45
    }
45 46
 // -----------------5 Seconds lock