Thomas Buck 8 yıl önce
ebeveyn
işleme
e6ae4710e8
2 değiştirilmiş dosya ile 20 ekleme ve 21 silme
  1. 1
    1
      include/main.h
  2. 19
    20
      src/rx.c

+ 1
- 1
include/main.h Dosyayı Görüntüle

@@ -9,7 +9,7 @@
9 9
 
10 10
 #include "serial.h"
11 11
 
12
-//#define DEBUG_UART_MENU
12
+#define DEBUG_UART_MENU
13 13
 
14 14
 #define debugChar(x) serialWrite(0, x)
15 15
 #define debugWrite(x) serialWriteString(0, x)

+ 19
- 20
src/rx.c Dosyayı Görüntüle

@@ -4,23 +4,22 @@
4 4
 
5 5
 #ifdef DEBUG
6 6
 
7
-//#define DEBUG_TEST_PART_VERSION
8
-//#define DEBUG_EEPROM_DATA_READ
7
+#define DEBUG_TEST_PART_VERSION
8
+#define DEBUG_EEPROM_DATA_READ
9 9
 #define DEBUG_EEPROM_DATA_WRITE
10
-//#define DEBUG_MISSING_PACKETS
11
-//#define DEBUG_PACKET_DUMP
12
-//#define DEBUG_PACKET_DUMP_TUNE
13
-//#define DEBUG_PACKET_DUMP_BIND
14
-//#define DEBUG_PACKET_DUMP_LIST
15
-//#define DEBUG_PPM_VALUES
16
-//#define DEBUG_ERROR_MESSAGES
17
-//#define DEBUG_MESSAGES
18
-//#define DEBUG_HOP_DATA
19
-
20
-#define DEBUG_SINGLE_CHARACTER_MESSAGES
10
+#define DEBUG_MISSING_PACKETS
11
+#define DEBUG_PACKET_DUMP
12
+#define DEBUG_PACKET_DUMP_TUNE
13
+#define DEBUG_PACKET_DUMP_BIND
14
+#define DEBUG_PACKET_DUMP_LIST
15
+#define DEBUG_PPM_VALUES
16
+#define DEBUG_ERROR_MESSAGES
17
+#define DEBUG_MESSAGES
18
+#define DEBUG_HOP_DATA
19
+
20
+//#define DEBUG_SINGLE_CHARACTER_MESSAGES
21 21
 
22 22
 #define ALWAYS_PERFORM_BINDING
23
-
24 23
 #define DISABLE_REAL_EEPROM_WRITE
25 24
 
26 25
 #endif
@@ -309,7 +308,7 @@ static void tuning() {
309 308
                 debugUnsigned8(ccLen);
310 309
                 debugWrite("):\n");
311 310
                 for (uint8_t i = 0; i < ccLen; i++) {
312
-                    debugWrite("0x")
311
+                    debugWrite("0x");
313 312
                     debugHex(ccData[i]);
314 313
                     if (i < (ccLen - 1)) {
315 314
                         debugWrite(" ");
@@ -382,7 +381,7 @@ static void performBind(void) {
382 381
                 debugUnsigned8(ccLen);
383 382
                 debugWrite("):\n");
384 383
                 for (uint8_t i = 0; i < ccLen; i++) {
385
-                    debugWrite("0x")
384
+                    debugWrite("0x");
386 385
                     debugHex(ccData[i]);
387 386
                     if (i < (ccLen - 1)) {
388 387
                         debugWrite(" ");
@@ -474,7 +473,7 @@ static void performBind(void) {
474 473
                     debugUnsigned8(ccLen);
475 474
                     debugWrite("):\n");
476 475
                     for (uint8_t i = 0; i < ccLen; i++) {
477
-                        debugWrite("0x")
476
+                        debugWrite("0x");
478 477
                         debugHex(ccData[i]);
479 478
                         if (i < (ccLen - 1)) {
480 479
                             debugWrite(" ");
@@ -595,7 +594,7 @@ static void readBindingData() {
595 594
     for (uint8_t i = 0; i < 2; i++) {
596 595
         txid[i] = eeprom_read_byte(EEPROM_BASE_ADDRESS + i);
597 596
 #ifdef DEBUG_EEPROM_DATA_READ
598
-        debugWrite("0x")
597
+        debugWrite("0x");
599 598
         debugHex(txid[i]);
600 599
         debugWrite(" ");
601 600
 #endif
@@ -612,7 +611,7 @@ static void readBindingData() {
612 611
     for (uint8_t i = 0; i < HOP_DATA_LENGTH; i++) {
613 612
         hopData[i] = eeprom_read_byte(EEPROM_BASE_ADDRESS + 10 + i);
614 613
 #ifdef DEBUG_EEPROM_DATA_READ
615
-        debugWrite("0x")
614
+        debugWrite("0x");
616 615
         debugHex(hopData[i]);
617 616
         debugWrite(" ");
618 617
 #endif
@@ -756,7 +755,7 @@ void rxReceivePacket() {
756 755
                     debugUnsigned8(ccLen);
757 756
                     debugWrite("):\n");
758 757
                     for (uint8_t i = 0; i < ccLen; i++) {
759
-                        debugWrite("0x")
758
+                        debugWrite("0x");
760 759
                         debugHex(ccData[i]);
761 760
                         if (i < (ccLen - 1)) {
762 761
                             debugWrite(" ");

Loading…
İptal
Kaydet