Subversion Repositories FlightCtrl

Rev

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

Rev 2105 Rev 2106
Line 169... Line 169...
169
void gyroOffset_writeToEEProm(void) {
169
void gyroOffset_writeToEEProm(void) {
170
  writeChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&gyroOffset, EEPROM_ADR_GYROOFFSET, sizeof(sensorOffset_t));
170
  writeChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&gyroOffset, EEPROM_ADR_GYROOFFSET, sizeof(sensorOffset_t));
171
}
171
}
Line 172... Line 172...
172
 
172
 
173
uint8_t airpressureOffset_readFromEEProm(void) {
173
uint8_t airpressureOffset_readFromEEProm(void) {
174
  return readChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&airspeedOffset, EEPROM_ADR_AIRSPEEDOFFSET, sizeof(uint16_t));
174
  return readChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&airpressureOffset, EEPROM_ADR_AIRSPEEDOFFSET, sizeof(uint16_t));
Line 175... Line 175...
175
}
175
}
176
 
176
 
177
void airpressureOffset_writeToEEProm(void) {
177
void airpressureOffset_writeToEEProm(void) {