Fix compilation errors based on config def

This commit is contained in:
Pascal Langer
2017-12-10 15:41:50 +01:00
parent 6031f1e3b8
commit 8b5bb0d358
3 changed files with 22 additions and 17 deletions

View File

@@ -162,7 +162,11 @@ static void __attribute__((unused)) frskyX_data_frame()
//packet[7] = FLAGS 00 - standard packet
//10, 12, 14, 16, 18, 1A, 1C, 1E - failsafe packet
//20 - range check packet
packet[7] = FS_flag;
#ifdef FAILSAFE_ENABLE
packet[7] = FS_flag;
#else
packet[7] = 0;
#endif
packet[8] = 0;
//
uint8_t startChan = chan_offset; for(uint8_t i = 0; i <12 ; i+=3)