Skip to content

Commit 8981cec

Browse files
author
Clang Robot
committed
Committing clang-format changes
1 parent 2b59344 commit 8981cec

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

src/include/System.cpp

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,19 @@ uint8_t System::readTouchpad(uint8_t _pad)
9898
*/
9999
double System::readBattery()
100100
{
101-
pinModeInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, INPUT);
102-
int state = digitalReadInternal(MCP23017_INT_ADDR, mcpRegsInt, 9);
103-
pinModeInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, OUTPUT);
104-
105-
if (state)
106-
{
107-
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, LOW);
108-
}
109-
else
110-
{
111-
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, HIGH);
112-
}
113-
/*
101+
pinModeInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, INPUT);
102+
int state = digitalReadInternal(MCP23017_INT_ADDR, mcpRegsInt, 9);
103+
pinModeInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, OUTPUT);
104+
105+
if (state)
106+
{
107+
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, LOW);
108+
}
109+
else
110+
{
111+
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, HIGH);
112+
}
113+
/*
114114
#ifdef ARDUINO_ESP32_DEV
115115
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, LOW);
116116
#else
@@ -119,19 +119,18 @@ double System::readBattery()
119119
*/
120120
delay(1);
121121
int adc = analogRead(35);
122-
if (state)
123-
{
124-
pinModeInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, INPUT);
125-
}
126-
else
127-
{
128-
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, LOW);
129-
}
130-
131-
132-
133-
/*
134-
122+
if (state)
123+
{
124+
pinModeInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, INPUT);
125+
}
126+
else
127+
{
128+
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, LOW);
129+
}
130+
131+
132+
/*
133+
135134
#ifdef ARDUINO_ESP32_DEV
136135
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, HIGH);
137136
#else

0 commit comments

Comments
 (0)