summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Maciaś <ursereg@gmail.com>2012-01-05 17:33:54 +0100
committerMateusz Maciaś <ursereg@gmail.com>2012-01-05 17:33:54 +0100
commit80ae9d8148c238023782e9f0a23608c6b5e33671 (patch)
tree254ebe8239fa428961eb7ff0ac65305a7c2a44da
parent511296b8d91f84f20f0250a4cf4248cc56455dbc (diff)
downloaddoorman-80ae9d8148c238023782e9f0a23608c6b5e33671.tar.gz
doorman-80ae9d8148c238023782e9f0a23608c6b5e33671.tar.bz2
doorman-80ae9d8148c238023782e9f0a23608c6b5e33671.tar.xz
doorman-80ae9d8148c238023782e9f0a23608c6b5e33671.zip
Fixed wrong message code.
-rw-r--r--arduino/arduino.pde7
1 files changed, 3 insertions, 4 deletions
diff --git a/arduino/arduino.pde b/arduino/arduino.pde
index 35cdbf3..c11e403 100644
--- a/arduino/arduino.pde
+++ b/arduino/arduino.pde
@@ -169,7 +169,7 @@ void loop(){
}
if (pc_send_flag){
pc_send_flag=false;
- pc_print('a',fid,hash);
+ pc_print('s',fid,hash);
}
pin=0;
rfid=0;
@@ -430,8 +430,7 @@ void pc_print(char code,unsigned int id,unsigned char * data) {
Serial.print(buf);
pc_print_hash(data);
snprintf(buf,12,",%08lx\n",token);
- Serial.print(buf);
- Serial.println("Printing done");
+ Serial.print(buf);
}
/**
@@ -710,4 +709,4 @@ boolean keypad_pin_get(unsigned long * p_pin){
void keypad_off(void) {
keypad.print("XX");
keypad_state=SEND;
-}
+}