Skip to content

Commit bd7372d

Browse files
committed
Removed some debug from test_switches unit test
Also commented out both switch defines in user_defines.txt so that people don't get surprised by changed behaviour. (The existing 1bit switches are used if neither of the new protocols is enabled.) Signed-off-by: JBKingdon <[email protected]>
1 parent 562e7e7 commit bd7372d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/test_switches.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ void test_decodingSEQ()
276276

277277
// copy into the required buffer for the decoder
278278
memcpy((void*)Radio.RXdataBuffer, (const void*)Radio.TXdataBuffer, sizeof(Radio.RXdataBuffer));
279-
for(int i=0;i<8; i++) Serial.printf("%d %d\n", Radio.RXdataBuffer[i], Radio.TXdataBuffer[i]);
280279

281280
// clear the output buffer to avoid cross-talk between tests
282281
memset((void *) &crsf.PackedRCdataOut, 0, sizeof(crsf.PackedRCdataOut));

src/user_defines.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
### ONLY DEFINE ONE OF THE SWITCH ENCODING OPTIONS
2121

22+
# if neither of the below are set the code defaults to 1bit switches
23+
2224
# Sequential switches
2325
# 5 bits are used in each rc packet to encode 8 3 position switches
2426
# first 3 bits are the switch ID, followed by 2 bits for the switch value.
@@ -37,7 +39,7 @@
3739
# channels are reduced to 10bit resolution to free up space in the rc packet
3840
# for switches.
3941

40-
-DHYBRID_SWITCHES_8
42+
#-DHYBRID_SWITCHES_8
4143

4244

4345
### Set your UID here. Must be 6 bytes!

0 commit comments

Comments
 (0)