Skip to content

Commit a5344b3

Browse files
authored
Merge pull request #36 from pennam/return_fix
wifi udp: add missing return values
2 parents c3360da + a6f3631 commit a5344b3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

UNOR4USBBridge/cmds_wifi_udp.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ void CAtHandler::add_cmds_wifi_udp() {
5555
}
5656
else {
5757
delete udps[i];
58-
59-
chAT::CommandStatus::ERROR;
58+
return chAT::CommandStatus::ERROR;
6059
}
6160
}
6261
else {
@@ -65,8 +64,7 @@ void CAtHandler::add_cmds_wifi_udp() {
6564
}
6665
else {
6766
delete udps[i];
68-
69-
chAT::CommandStatus::ERROR;
67+
return chAT::CommandStatus::ERROR;
7068
}
7169
}
7270

@@ -129,7 +127,7 @@ void CAtHandler::add_cmds_wifi_udp() {
129127
}
130128
else {
131129
delete udps[i];
132-
chAT::CommandStatus::ERROR;
130+
return chAT::CommandStatus::ERROR;
133131
}
134132

135133
srv.write_response_prompt();

0 commit comments

Comments
 (0)