Fix: removed reset of nrf24l01 if not previously used...

This commit is contained in:
pascallanger 2016-01-23 09:03:00 +01:00
parent 2bd8d7ee32
commit 93300c6821

View File

@ -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)
{
@ -490,6 +491,7 @@ static void module_reset()
NRF24L01_Reset();
break;
}
}
}
// Channel value is converted to 8bit values full scale