Skip to content

Commit 082e96e

Browse files
committed
DSMR timing
1 parent abd26ee commit 082e96e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Multiprotocol/DSM_cyrf6936.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
{

Multiprotocol/Multiprotocol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define VERSION_MAJOR 1
2020
#define VERSION_MINOR 3
2121
#define VERSION_REVISION 4
22-
#define VERSION_PATCH_LEVEL 49
22+
#define VERSION_PATCH_LEVEL 50
2323

2424
#define MODE_SERIAL 0
2525

0 commit comments

Comments
 (0)