mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-10 13:28:14 +00:00
Fix: removed reset of nrf24l01 if not previously used...
This commit is contained in:
parent
2bd8d7ee32
commit
93300c6821
@ -150,7 +150,6 @@ void setup()
|
||||
// Read or create protocol id
|
||||
MProtocol_id_master=random_id(10,false);
|
||||
|
||||
|
||||
//Protocol and interrupts initialization
|
||||
if(mode_select != MODE_SERIAL)
|
||||
{ // PPM
|
||||
@ -469,6 +468,8 @@ static void update_serial_data()
|
||||
|
||||
static void module_reset()
|
||||
{
|
||||
if(remote_callback)
|
||||
{ // a protocol was loaded, reset the module used
|
||||
remote_callback = 0;
|
||||
switch(prev_protocol)
|
||||
{
|
||||
@ -491,6 +492,7 @@ static void module_reset()
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Channel value is converted to 8bit values full scale
|
||||
uint8_t convert_channel_8b(uint8_t num)
|
||||
|
Loading…
x
Reference in New Issue
Block a user