mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-11 00:18:12 +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
|
// Read or create protocol id
|
||||||
MProtocol_id_master=random_id(10,false);
|
MProtocol_id_master=random_id(10,false);
|
||||||
|
|
||||||
|
|
||||||
//Protocol and interrupts initialization
|
//Protocol and interrupts initialization
|
||||||
if(mode_select != MODE_SERIAL)
|
if(mode_select != MODE_SERIAL)
|
||||||
{ // PPM
|
{ // PPM
|
||||||
@ -469,6 +468,8 @@ static void update_serial_data()
|
|||||||
|
|
||||||
static void module_reset()
|
static void module_reset()
|
||||||
{
|
{
|
||||||
|
if(remote_callback)
|
||||||
|
{ // a protocol was loaded, reset the module used
|
||||||
remote_callback = 0;
|
remote_callback = 0;
|
||||||
switch(prev_protocol)
|
switch(prev_protocol)
|
||||||
{
|
{
|
||||||
@ -491,6 +492,7 @@ static void module_reset()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Channel value is converted to 8bit values full scale
|
// Channel value is converted to 8bit values full scale
|
||||||
uint8_t convert_channel_8b(uint8_t num)
|
uint8_t convert_channel_8b(uint8_t num)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user