mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Corrected issue with telemetry init when battery cell estimatation is undefined
This commit is contained in:
parent
25b49a58a1
commit
3a7540e042
8 changed files with 56 additions and 38 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue