Skip to content

Commit 00deb17

Browse files
committed
Cleanup includes and unnecessary prints
1 parent 3e2f7e4 commit 00deb17

File tree

4 files changed

+28
-7
lines changed

4 files changed

+28
-7
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef WipperSnapper_I2C_Driver_H
1717
#define WipperSnapper_I2C_Driver_H
1818

19-
#include "../../../wippersnapper/i2c/v1/i2c.pb.h"
19+
#include "wippersnapper/i2c/v1/i2c.pb.h"
2020
#include <Adafruit_Sensor.h>
2121
#include <Arduino.h>
2222
#include <Wire.h>

src/components/i2c/drivers/WipperSnapper_I2C_Driver_INA237.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@
44
* Device driver implementation for the INA237 DC Current and Voltage Monitor
55
* (Avoids import conflict with INA260 typedef enum _mode etc)
66
*
7+
* Adafruit invests time and resources providing this open source code,
8+
* please support Adafruit and open-source hardware by purchasing
9+
* products from Adafruit!
10+
*
11+
* Copyright (c) Tyeth Gundry 2025 for Adafruit Industries.
12+
*
13+
* MIT license, all text here must be included in any redistribution.
14+
*
715
*/
816

917
#include "WipperSnapper_I2C_Driver_INA237.h"
10-
#include "../../../Wippersnapper.h"
18+
#include "Wippersnapper.h"
1119
#include <Adafruit_INA237.h>
1220

1321
/*******************************************************************************/
@@ -44,7 +52,6 @@ WipperSnapper_I2C_Driver_INA237::~WipperSnapper_I2C_Driver_INA237() {
4452
bool WipperSnapper_I2C_Driver_INA237::begin() {
4553
_ina237 = new Adafruit_INA237();
4654
if (!_ina237->begin(_sensorAddress, _i2c)) {
47-
WS_DEBUG_PRINTLN("INA237 failed to initialise!");
4855
return false;
4956
}
5057

src/components/i2c/drivers/WipperSnapper_I2C_Driver_INA238.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@
44
* Device driver implementation for the INA238 High-precision DC Current and
55
* Voltage Monitor (Avoids import conflict with INA260 typedef enum _mode etc)
66
*
7+
* Adafruit invests time and resources providing this open source code,
8+
* please support Adafruit and open-source hardware by purchasing
9+
* products from Adafruit!
10+
*
11+
* Copyright (c) Tyeth Gundry 2025 for Adafruit Industries.
12+
*
13+
* MIT license, all text here must be included in any redistribution.
14+
*
715
*/
816

917
#include "WipperSnapper_I2C_Driver_INA238.h"
10-
#include "../../../Wippersnapper.h"
18+
#include "Wippersnapper.h"
1119
#include <Adafruit_INA238.h>
1220

1321
/*******************************************************************************/
@@ -44,7 +52,6 @@ WipperSnapper_I2C_Driver_INA238::~WipperSnapper_I2C_Driver_INA238() {
4452
bool WipperSnapper_I2C_Driver_INA238::begin() {
4553
_ina238 = new Adafruit_INA238();
4654
if (!_ina238->begin(_sensorAddress, _i2c)) {
47-
WS_DEBUG_PRINTLN("INA238 failed to initialise!");
4855
return false;
4956
}
5057

src/components/i2c/drivers/WipperSnapper_I2C_Driver_INA260.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@
33
*
44
* Device driver implementation for the INA260 DC Current and Voltage Monitor
55
*
6+
* Adafruit invests time and resources providing this open source code,
7+
* please support Adafruit and open-source hardware by purchasing
8+
* products from Adafruit!
9+
*
10+
* Copyright (c) Tyeth Gundry 2025 for Adafruit Industries.
11+
*
12+
* MIT license, all text here must be included in any redistribution.
13+
*
614
*/
715

816
#include "WipperSnapper_I2C_Driver_INA260.h"
9-
#include "../../../Wippersnapper.h"
17+
#include "Wippersnapper.h"
1018
#include <Adafruit_INA260.h>
1119

1220
/*******************************************************************************/
@@ -43,7 +51,6 @@ WipperSnapper_I2C_Driver_INA260::~WipperSnapper_I2C_Driver_INA260() {
4351
bool WipperSnapper_I2C_Driver_INA260::begin() {
4452
_ina260 = new Adafruit_INA260();
4553
if (!_ina260->begin(_sensorAddress, _i2c)) {
46-
WS_DEBUG_PRINTLN("INA260 failed to initialise!");
4754
return false;
4855
}
4956
// TODO: use setCalibration()

0 commit comments

Comments
 (0)