mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 18:48:11 +00:00
JJRC345: update channels range
This commit is contained in:
parent
02008a8b2e
commit
eb8b5eac01
@ -37,13 +37,9 @@ enum JJRC345_FLAGS {
|
||||
static uint8_t __attribute__((unused)) JJRC345_convert_channel(uint8_t num)
|
||||
{
|
||||
uint8_t val=convert_channel_8b(num);
|
||||
// 7F..01=left, 00=center, 80..FF=right
|
||||
if(val==0x80)
|
||||
val=0; // 0
|
||||
else
|
||||
if(val>0x80)
|
||||
val--; // 80..FE
|
||||
else
|
||||
// Should be 70..60..41..01, 80 center, 81..C1..E0..F0
|
||||
// Trying 7F..01, 80 center, 81..FF
|
||||
if(val<0x80)
|
||||
{
|
||||
val=0x80-val; // 80..01
|
||||
if(val==0x80)
|
||||
|
Loading…
x
Reference in New Issue
Block a user