mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
fix: missing test
This commit is contained in:
parent
50d287a9d4
commit
1a67f5da17
2 changed files with 5 additions and 2 deletions
|
@ -69,7 +69,6 @@ extern "C" {
|
|||
int sbufBytesRemaining(sbuf_t *buf);
|
||||
void initSharedMsp();
|
||||
uint16_t testBatteryVoltage = 0;
|
||||
uint16_t testAvgCellVoltage = 0;
|
||||
int32_t testAmperage = 0;
|
||||
uint8_t mspTxData[64]; //max frame size
|
||||
sbuf_t mspTxDataBuf;
|
||||
|
@ -261,7 +260,7 @@ extern "C" {
|
|||
return testBatteryVoltage;
|
||||
}
|
||||
uint16_t getBatteryAverageCellVoltage(void) {
|
||||
return testAvgCellVoltage;
|
||||
return 0;
|
||||
}
|
||||
bool isAmperageConfigured(void) { return true; }
|
||||
int32_t getAmperage(void) {
|
||||
|
|
|
@ -322,6 +322,10 @@ uint16_t getBatteryVoltage(void) {
|
|||
return testBatteryVoltage;
|
||||
}
|
||||
|
||||
uint16_t getBatteryAverageCellVoltage(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
batteryState_e getBatteryState(void) {
|
||||
return BATTERY_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue