1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Corrected issue with telemetry init when battery cell estimatation is undefined

This commit is contained in:
Curtis Bangert 2018-02-07 20:30:00 -05:00
parent 25b49a58a1
commit 3a7540e042
8 changed files with 56 additions and 38 deletions

View file

@ -254,11 +254,11 @@ extern "C" {
uint32_t micros(void) {return dummyTimeUs;}
serialPort_t *openSerialPort(serialPortIdentifier_e, serialPortFunction_e, serialReceiveCallbackPtr, void *, uint32_t, portMode_e, portOptions_e) {return NULL;}
serialPortConfig_t *findSerialPortConfig(serialPortFunction_e ) {return NULL;}
bool isBatteryVoltageAvailable(void) { return true; }
bool isBatteryVoltageConfigured(void) { return true; }
uint16_t getBatteryVoltage(void) {
return testBatteryVoltage;
}
bool isAmperageAvailable(void) { return true; }
bool isAmperageConfigured(void) { return true; }
int32_t getAmperage(void) {
return testAmperage;
}

View file

@ -336,7 +336,7 @@ int32_t getMAhDrawn(void){
bool sendMspReply(uint8_t, mspResponseFnPtr) { return false; }
bool handleMspFrame(uint8_t *, int) { return false; }
void crsfScheduleMspResponse(void) {};
bool isBatteryVoltageAvailable(void) { return true; }
bool isAmperageAvailable(void) { return true; }
bool isBatteryVoltageConfigured(void) { return true; }
bool isAmperageConfigured(void) { return true; }
}