1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 15:55:48 +03:00

Fix:remove unused variable

This commit is contained in:
thomasbridi 2018-08-23 15:27:47 +02:00 committed by GitHub
parent 50d287a9d4
commit 8eccc325ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ 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 +261,7 @@ extern "C" {
return testBatteryVoltage;
}
uint16_t getBatteryAverageCellVoltage(void) {
return testAvgCellVoltage;
return 0;
}
bool isAmperageConfigured(void) { return true; }
int32_t getAmperage(void) {