Skip to content

Commit f6fced2

Browse files
committed
Remove total redundant statement.
1 parent edd8cb5 commit f6fced2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Braccio++.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,8 @@ bool BraccioClass::begin(voidFuncPtr custom_menu)
7373

7474
SPI.begin();
7575

76-
int ret = _expander.testConnection();
77-
78-
if (ret == false) {
79-
return ret;
80-
}
76+
if (!_expander.testConnection())
77+
return false;
8178

8279
for (int i = 0; i < 14; i++) {
8380
_expander.setPinDirection(i, 0);

0 commit comments

Comments
 (0)