@@ -292,7 +292,7 @@ uint16_t DSM_callback()
292292 #define DSM_CH1_CH2_DELAY 4010 // Time between write of channel 1 and channel 2
293293 #ifdef STM32_BOARD
294294 #define DSM_WRITE_DELAY 1600 // Time after write to verify write complete
295- #define DSM_READ_DELAY 400 // Time before write to check read phase, and switch channels.
295+ #define DSM_READ_DELAY 300 // Time before write to check read phase, and switch channels.
296296 #else
297297 #define DSM_WRITE_DELAY 1950 // Time after write to verify write complete
298298 #define DSM_READ_DELAY 600 // Time before write to check read phase, and switch channels.
@@ -470,15 +470,15 @@ uint16_t DSM_callback()
470470 case DSM_CH2_READ_B:
471471 // Read telemetry
472472 rx_phase = CYRF_ReadRegister (CYRF_07_RX_IRQ_STATUS);
473- debug (" ST1:%02X " ,rx_phase);
473+ // debug("ST1:%02X ",rx_phase);
474474 if ((rx_phase & 0x03 ) == 0x02 ) // RXC=1, RXE=0 then 2nd check is required (debouncing)
475475 rx_phase |= CYRF_ReadRegister (CYRF_07_RX_IRQ_STATUS);
476- debug (" ST2:%02X " ,rx_phase);
476+ // debug("ST2:%02X ",rx_phase);
477477 if ((rx_phase & 0x07 ) == 0x02 )
478478 { // good data (complete with no errors)
479479 CYRF_WriteRegister (CYRF_07_RX_IRQ_STATUS, 0x80 ); // need to set RXOW before data read
480480 length=CYRF_ReadRegister (CYRF_09_RX_COUNT);
481- debug (" RX(%d)" ,length);
481+ // debug("RX(%d)",length);
482482 if (length>TELEMETRY_BUFFER_SIZE-2 )
483483 length=TELEMETRY_BUFFER_SIZE-2 ;
484484 CYRF_ReadDataPacketLen (packet_in+1 , length);
@@ -496,7 +496,7 @@ uint16_t DSM_callback()
496496 // debug(" %02X", packet_in[i]);
497497 telemetry_link=1 ;
498498 }
499- debugln (" " );
499+ // debugln("");
500500 CYRF_WriteRegister (CYRF_29_RX_ABORT, 0x20 ); // Abort RX operation
501501 if (phase == DSM_CH2_READ_A && (sub_protocol==DSM2_1F || sub_protocol==DSMX_1F) && num_ch < 8 ) // 22ms mode
502502 {
0 commit comments