[Taranis] EEPROM is written 64bytes per main cycle, instead of completely written in one cycle

[Taranis] Channels count may go down to 4
This commit is contained in:
bsongis@gmail.com
2013-05-20 06:55:15 +00:00
parent c762e1bf65
commit 05569ef15a
7 changed files with 26 additions and 28 deletions
+2 -2
View File
@@ -186,11 +186,11 @@ void setupPulsesPXX(unsigned int port)
/* PPM */
static uint32_t pass[NUM_MODULES] = { MODULES_INIT(0) };
uint32_t sendUpperChannels = 0;
int sendUpperChannels = 0;
if (pass[port]++ & 0x01) {
sendUpperChannels = g_model.moduleData[port].channelsCount;
}
for (uint32_t i=0; i<8; i++) {
for (int i=0; i<8; i++) {
if (flag1 & PXX_SEND_FAILSAFE) {
if (g_model.moduleData[port].failsafeMode == FAILSAFE_NOPULSES) {
if (i < sendUpperChannels)