Skip to content

Commit a4d9e9d

Browse files
committed
clang again
1 parent f6c406a commit a4d9e9d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_7Seg.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#define LED_MAX_CHARS \
3434
4 ///< Maximum number of characters to display on the alphanumeric display
3535

36-
3736
/*!
3837
@brief Class that provides a driver interface for 7-Segment
3938
Displays w/I2C Backpack
@@ -50,20 +49,21 @@ class WipperSnapper_I2C_Driver_Out_7Seg : public WipperSnapper_I2C_Driver_Out {
5049
7-bit device address.
5150
*/
5251
/*******************************************************************************/
53-
WipperSnapper_I2C_Driver_Out_7Seg(TwoWire *i2c, uint16_t sensorAddress) : WipperSnapper_I2C_Driver_Out(i2c, sensorAddress) {
52+
WipperSnapper_I2C_Driver_Out_7Seg(TwoWire *i2c, uint16_t sensorAddress)
53+
: WipperSnapper_I2C_Driver_Out(i2c, sensorAddress) {
5454
_i2c = i2c;
5555
_sensorAddress = sensorAddress;
5656
}
5757

5858
/*!
5959
@brief Destructor for a 7-Segment display driver.
6060
*/
61-
~WipperSnapper_I2C_Driver_Out_7Seg() {
61+
~WipperSnapper_I2C_Driver_Out_7Seg() {
6262
if (_matrix != nullptr) {
6363
delete _matrix;
6464
_matrix = nullptr;
6565
}
66-
}
66+
}
6767

6868
/*!
6969
@brief Initializes the 7-segment LED matrix and begins I2C
@@ -178,7 +178,8 @@ class WipperSnapper_I2C_Driver_Out_7Seg : public WipperSnapper_I2C_Driver_Out {
178178
*/
179179
void WriteValue(float value) {
180180
char message[8 + 1];
181-
snprintf(message, sizeof(message), "%.2f", value); // Less precision for 7-segment
181+
snprintf(message, sizeof(message), "%.2f",
182+
value); // Less precision for 7-segment
182183
WriteMessage(message);
183184
}
184185

0 commit comments

Comments
 (0)