We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45aae84 commit a7a796fCopy full SHA for a7a796f
src/Arduino_AlvikCarrier.cpp
@@ -137,7 +137,7 @@ int Arduino_AlvikCarrier::begin(){
137
138
beginServo();
139
140
- if (beginBMS()!=0){
+ if (!beginBMS()){
141
errorLed(ERROR_BMS);
142
}
143
@@ -270,8 +270,7 @@ void Arduino_AlvikCarrier::disconnectExternalI2C(){
270
271
int Arduino_AlvikCarrier::beginBMS(){
272
while(digitalRead(NANO_CHK)==HIGH){}
273
- bms->begin();
274
- return 0;
+ return bms->begin();
275
276
277
void Arduino_AlvikCarrier::updateBMS(){
0 commit comments