Subversion Repositories FlightCtrl

Rev

Rev 2122 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2122 Rev 2132
Line 153... Line 153...
153
void channelMap_readOrDefault(void) {
153
void channelMap_readOrDefault(void) {
154
  if (readChecksummedBlock(CHANNELMAP_REVISION, (uint8_t*)&channelMap, EEPROM_ADR_CHANNELMAP, sizeof(ChannelMap_t))) {
154
  if (readChecksummedBlock(CHANNELMAP_REVISION, (uint8_t*)&channelMap, EEPROM_ADR_CHANNELMAP, sizeof(ChannelMap_t))) {
155
    printf("\n\rwriting default channel map");
155
    printf("\n\rwriting default channel map");
156
    channelMap_default();
156
    channelMap_default();
157
    channelMap_writeToEEProm();
157
    channelMap_writeToEEProm();
158
    // For whatever stupid reason, the newly defaulted channel map is not used! Reset.
-
 
159
        wdt_enable(WDTO_500MS);
-
 
160
  }
158
  }
161
}
159
}
Line 162... Line 160...
162
 
160
 
163
void rcTrim_writeToEEProm(void) {
161
void rcTrim_writeToEEProm(void) {