Read Error 10 years ago
parent
commit
91b90ad6d8
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      frsky_arduino_rx_complete.ino

+ 4
- 3
frsky_arduino_rx_complete.ino View File

387
                             //Serial.println(ccData[2]);
387
                             //Serial.println(ccData[2]);
388
                           }
388
                           }
389
                             if ((ccData[3] == txid[0]) && (ccData[4] == txid[1])) {
389
                             if ((ccData[3] == txid[0]) && (ccData[4] == txid[1])) {
390
-                              if(debug2) 
390
+                              if(debug3) 
391
                               {
391
                               {
392
                                 Serial.print("ccData[5] = ");
392
                                 Serial.print("ccData[5] = ");
393
                                 Serial.println(ccData[5]);
393
                                 Serial.println(ccData[5]);
396
                               }
396
                               }
397
                                 if (ccData[5] == bindIdx) {
397
                                 if (ccData[5] == bindIdx) {
398
                                     for (uint8_t n = 0; n < 5; n++) {
398
                                     for (uint8_t n = 0; n < 5; n++) {
399
-                                      if(debug3) 
399
+                                      if(debug2) 
400
                                       {
400
                                       {
401
                                         Serial.print("ccData[6 + n] = ");
401
                                         Serial.print("ccData[6 + n] = ");
402
                                         Serial.println(ccData[6 + n]);
402
                                         Serial.println(ccData[6 + n]);
403
                                         Serial.print("ccData[ccLen - 3] = ");
403
                                         Serial.print("ccData[ccLen - 3] = ");
404
                                         Serial.println(ccData[ccLen - 3]);                      
404
                                         Serial.println(ccData[ccLen - 3]);                      
405
                                       }
405
                                       }
406
-                                        if (ccData[6 + n] == ccData[ccLen - 3]) {
406
+                                        //if (ccData[6 + n] == ccData[ccLen - 3]) {
407
+                                          if (ccData[6 + n] == 3) {
407
                                             eol = true;
408
                                             eol = true;
408
                                             #if defined(DEBUG)
409
                                             #if defined(DEBUG)
409
                                                 Serial.print("listLength: ");
410
                                                 Serial.print("listLength: ");

Loading…
Cancel
Save