Skip to content

Commit 0cf620c

Browse files
authored
Merge pull request #4 from jandelgado/adding_missing_return_statements
added missing "return" statements
2 parents 31d5ec1 + c0bd681 commit 0cf620c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DFRobotDFPlayerMini.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ bool DFRobotDFPlayerMini::handleMessage(uint8_t type, uint16_t parameter){
126126
bool DFRobotDFPlayerMini::handleError(uint8_t type, uint16_t parameter){
127127
handleMessage(type, parameter);
128128
_isSending = false;
129+
return false;
129130
}
130131

131132
uint8_t DFRobotDFPlayerMini::readCommand(){
@@ -472,11 +473,11 @@ int DFRobotDFPlayerMini::readFolderCounts(){
472473
}
473474

474475
int DFRobotDFPlayerMini::readFileCounts(){
475-
readFileCounts(DFPLAYER_DEVICE_SD);
476+
return readFileCounts(DFPLAYER_DEVICE_SD);
476477
}
477478

478479
int DFRobotDFPlayerMini::readCurrentFileNumber(){
479-
readCurrentFileNumber(DFPLAYER_DEVICE_SD);
480+
return readCurrentFileNumber(DFPLAYER_DEVICE_SD);
480481
}
481482

482483

0 commit comments

Comments
 (0)