We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea003e3 commit 0ad8a22Copy full SHA for 0ad8a22
src/Board.cpp
@@ -299,6 +299,14 @@ bool Board::setReferenceVoltage(float voltage) {
299
}
300
301
void Board::shutDownFuelGauge() {
302
- MAX1726Driver fuelGauge(&Wire);
+ #if defined(ARDUINO_PORTENTA_C33)
303
+ MAX1726Driver fuelGauge(&Wire3);
304
+ #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4)
305
+ MAX1726Driver fuelGauge(&Wire1);
306
+ #elif defined(ARDUINO_NICLA_VISION)
307
308
+ #else
309
+ #error "The selected board is not supported by the Battery class."
310
+ #endif
311
fuelGauge.setOperationMode(FuelGaugeOperationMode::shutdown);
312
0 commit comments