Skip to content

Commit 212b848

Browse files
committed
fixed the fix
1 parent c7b03b4 commit 212b848

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

arduino/mdb.c

+13-13
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void mdb_reset(void) {
112112
// Wait for enough data in buffer to proceed reset
113113
if(buffer_level(MDB_USART,RX) < 2) return;
114114

115-
#if DEBUG == 1
115+
#if DEBUG == 2
116116
send_str_p(UPLINK_USART, PSTR("RESET\r\n"));
117117
#endif
118118

@@ -205,7 +205,7 @@ void mdb_setup(void) {
205205
// Stage 1 - config Data
206206
case 0:
207207

208-
#if DEBUG == 1
208+
#if DEBUG == 2
209209
send_str_p(UPLINK_USART, PSTR("SETUP STAGE 1\r\n"));
210210
#endif
211211

@@ -289,7 +289,7 @@ void mdb_setup(void) {
289289
// Stage 2 - price data
290290
case 1:
291291

292-
#if DEBUG == 1
292+
#if DEBUG == 2
293293
send_str_p(UPLINK_USART, PSTR("SETUP STAGE 2\r\n"));
294294
#endif
295295

@@ -324,7 +324,7 @@ void mdb_setup(void) {
324324
// Wait for enough data in buffer
325325
if(buffer_level(MDB_USART,RX) < 2) return;
326326

327-
#if DEBUG == 1
327+
#if DEBUG == 2
328328
send_str_p(UPLINK_USART, PSTR("SETUP WAIT FOR ACK\r\n"));
329329
#endif
330330

@@ -380,7 +380,7 @@ void mdb_poll(void) {
380380
// Wait for enough data in buffer
381381
if(buffer_level(MDB_USART,RX) < 2) return;
382382

383-
#if DEBUG == 1
383+
#if DEBUG == 2
384384
send_str_p(UPLINK_USART, PSTR("POLL\r\n"));
385385
#endif
386386

@@ -651,7 +651,7 @@ void mdb_vend(void) {
651651
// wait for enough data in buffer
652652
if(buffer_level(MDB_USART,RX) < 10) return;
653653

654-
#if DEBUG == 1
654+
#if DEBUG == 2
655655
send_str_p(UPLINK_USART, PSTR("VEND REQUEST\r\n"));
656656
#endif
657657

@@ -691,7 +691,7 @@ void mdb_vend(void) {
691691
// wait for enough data in buffer
692692
if(buffer_level(MDB_USART,RX) < 2) return;
693693

694-
#if DEBUG == 1
694+
#if DEBUG == 2
695695
send_str_p(UPLINK_USART, PSTR("VEND Cancel\r\n"));
696696
#endif
697697

@@ -728,7 +728,7 @@ void mdb_vend(void) {
728728
// wait for enough data in buffer
729729
if(buffer_level(MDB_USART,RX) < 6) return;
730730

731-
#if DEBUG == 1
731+
#if DEBUG == 2
732732
send_str_p(UPLINK_USART, PSTR("VEND SUCCESS\r\n"));
733733
#endif
734734

@@ -768,7 +768,7 @@ void mdb_vend(void) {
768768
// wait for enough data in buffer
769769
if(buffer_level(MDB_USART,RX) < 2) return;
770770

771-
#if DEBUG == 1
771+
#if DEBUG == 2
772772
send_str_p(UPLINK_USART, PSTR("VEND FAILURE\r\n"));
773773
#endif
774774

@@ -805,7 +805,7 @@ void mdb_vend(void) {
805805
// wait for enough data in buffer
806806
if(buffer_level(MDB_USART,RX) < 2) return;
807807

808-
#if DEBUG == 1
808+
#if DEBUG == 2
809809
send_str_p(UPLINK_USART, PSTR("VEND SESSION COMPLETE\r\n"));
810810
#endif
811811

@@ -863,7 +863,7 @@ void mdb_reader(void) {
863863
return;
864864
}
865865

866-
#if DEBUG == 1
866+
#if DEBUG == 2
867867
send_str_p(UPLINK_USART, PSTR("READER DISABLE\r\n"));
868868
#endif
869869

@@ -883,7 +883,7 @@ void mdb_reader(void) {
883883
return;
884884
}
885885

886-
#if DEBUG == 1
886+
#if DEBUG == 2
887887
send_str_p(UPLINK_USART, PSTR("READER ENABLE\r\n"));
888888
#endif
889889

@@ -903,7 +903,7 @@ void mdb_reader(void) {
903903
return;
904904
}
905905

906-
#if DEBUG == 1
906+
#if DEBUG == 2
907907
send_str_p(UPLINK_USART, PSTR("READER CANCEL\r\n"));
908908
#endif
909909

0 commit comments

Comments
 (0)