From d9f00e02697cec9e0d8dbd26b7dab75cea0af543 Mon Sep 17 00:00:00 2001 From: Daniel Porrey Date: Mon, 13 Sep 2021 18:21:40 -0500 Subject: [PATCH] Tweaks --- examples/MAX17043/MAX17043.ino | 2 +- examples/MAX17044/MAX17044.ino | 2 +- src/MAX1704X.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/MAX17043/MAX17043.ino b/examples/MAX17043/MAX17043.ino index 058b540..b269f9a 100644 --- a/examples/MAX17043/MAX17043.ino +++ b/examples/MAX17043/MAX17043.ino @@ -48,7 +48,7 @@ void setup() // // Initialize the fuel gauge. // - if (FuelGauge.begin() + if (FuelGauge.begin()) { Serial.println("The MAX17043 device was found.\n"); FuelGauge.quickstart(); diff --git a/examples/MAX17044/MAX17044.ino b/examples/MAX17044/MAX17044.ino index bf807fb..743612d 100644 --- a/examples/MAX17044/MAX17044.ino +++ b/examples/MAX17044/MAX17044.ino @@ -48,7 +48,7 @@ void setup() // // Initialize the fuel gauge. // - if (FuelGauge.begin() + if (FuelGauge.begin()) { Serial.println("The MAX17044 device was found.\n"); FuelGauge.quickstart(); diff --git a/src/MAX1704X.cpp b/src/MAX1704X.cpp index 724e310..7a9cc5e 100644 --- a/src/MAX1704X.cpp +++ b/src/MAX1704X.cpp @@ -64,7 +64,7 @@ bool MAX1704X::begin(int sda, int scl) { this->_wire = &Wire; this->_wire->begin(sda, scl); - returnValue = this->deviceFound(); + return this->deviceFound(); } bool MAX1704X::begin(int sda, int scl, uint8_t address) @@ -72,7 +72,7 @@ bool MAX1704X::begin(int sda, int scl, uint8_t address) this->_address = address; this->_wire = &Wire; this->_wire->begin(sda, scl); - returnValue = this->deviceFound(); + return this->deviceFound(); } #endif