Browse Source

Small fix

Thomas Buck 8 years ago
parent
commit
e6ae4710e8
2 changed files with 20 additions and 21 deletions
  1. 1
    1
      include/main.h
  2. 19
    20
      src/rx.c

+ 1
- 1
include/main.h View File

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

+ 19
- 20
src/rx.c View File

4
 
4
 
5
 #ifdef DEBUG
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
 #define DEBUG_EEPROM_DATA_WRITE
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
 #define ALWAYS_PERFORM_BINDING
22
 #define ALWAYS_PERFORM_BINDING
23
-
24
 #define DISABLE_REAL_EEPROM_WRITE
23
 #define DISABLE_REAL_EEPROM_WRITE
25
 
24
 
26
 #endif
25
 #endif
309
                 debugUnsigned8(ccLen);
308
                 debugUnsigned8(ccLen);
310
                 debugWrite("):\n");
309
                 debugWrite("):\n");
311
                 for (uint8_t i = 0; i < ccLen; i++) {
310
                 for (uint8_t i = 0; i < ccLen; i++) {
312
-                    debugWrite("0x")
311
+                    debugWrite("0x");
313
                     debugHex(ccData[i]);
312
                     debugHex(ccData[i]);
314
                     if (i < (ccLen - 1)) {
313
                     if (i < (ccLen - 1)) {
315
                         debugWrite(" ");
314
                         debugWrite(" ");
382
                 debugUnsigned8(ccLen);
381
                 debugUnsigned8(ccLen);
383
                 debugWrite("):\n");
382
                 debugWrite("):\n");
384
                 for (uint8_t i = 0; i < ccLen; i++) {
383
                 for (uint8_t i = 0; i < ccLen; i++) {
385
-                    debugWrite("0x")
384
+                    debugWrite("0x");
386
                     debugHex(ccData[i]);
385
                     debugHex(ccData[i]);
387
                     if (i < (ccLen - 1)) {
386
                     if (i < (ccLen - 1)) {
388
                         debugWrite(" ");
387
                         debugWrite(" ");
474
                     debugUnsigned8(ccLen);
473
                     debugUnsigned8(ccLen);
475
                     debugWrite("):\n");
474
                     debugWrite("):\n");
476
                     for (uint8_t i = 0; i < ccLen; i++) {
475
                     for (uint8_t i = 0; i < ccLen; i++) {
477
-                        debugWrite("0x")
476
+                        debugWrite("0x");
478
                         debugHex(ccData[i]);
477
                         debugHex(ccData[i]);
479
                         if (i < (ccLen - 1)) {
478
                         if (i < (ccLen - 1)) {
480
                             debugWrite(" ");
479
                             debugWrite(" ");
595
     for (uint8_t i = 0; i < 2; i++) {
594
     for (uint8_t i = 0; i < 2; i++) {
596
         txid[i] = eeprom_read_byte(EEPROM_BASE_ADDRESS + i);
595
         txid[i] = eeprom_read_byte(EEPROM_BASE_ADDRESS + i);
597
 #ifdef DEBUG_EEPROM_DATA_READ
596
 #ifdef DEBUG_EEPROM_DATA_READ
598
-        debugWrite("0x")
597
+        debugWrite("0x");
599
         debugHex(txid[i]);
598
         debugHex(txid[i]);
600
         debugWrite(" ");
599
         debugWrite(" ");
601
 #endif
600
 #endif
612
     for (uint8_t i = 0; i < HOP_DATA_LENGTH; i++) {
611
     for (uint8_t i = 0; i < HOP_DATA_LENGTH; i++) {
613
         hopData[i] = eeprom_read_byte(EEPROM_BASE_ADDRESS + 10 + i);
612
         hopData[i] = eeprom_read_byte(EEPROM_BASE_ADDRESS + 10 + i);
614
 #ifdef DEBUG_EEPROM_DATA_READ
613
 #ifdef DEBUG_EEPROM_DATA_READ
615
-        debugWrite("0x")
614
+        debugWrite("0x");
616
         debugHex(hopData[i]);
615
         debugHex(hopData[i]);
617
         debugWrite(" ");
616
         debugWrite(" ");
618
 #endif
617
 #endif
756
                     debugUnsigned8(ccLen);
755
                     debugUnsigned8(ccLen);
757
                     debugWrite("):\n");
756
                     debugWrite("):\n");
758
                     for (uint8_t i = 0; i < ccLen; i++) {
757
                     for (uint8_t i = 0; i < ccLen; i++) {
759
-                        debugWrite("0x")
758
+                        debugWrite("0x");
760
                         debugHex(ccData[i]);
759
                         debugHex(ccData[i]);
761
                         if (i < (ccLen - 1)) {
760
                         if (i < (ccLen - 1)) {
762
                             debugWrite(" ");
761
                             debugWrite(" ");

Loading…
Cancel
Save