Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit c9a9888

Browse files
committed
changes to get SerialHost building
1 parent e7a43bd commit c9a9888

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

modem/begin-command.cc renamed to modem/begin-command.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ bool BeginCommand::execute(const String& command,
2626
host = data;
2727
} else {
2828
// host and auth.
29-
host = data.substr(0, space_index);
30-
auth = data.substr(space_index + 1);
29+
host = data.substring(0, space_index);
30+
auth = data.substring(space_index + 1);
3131
}
3232

33-
if (host.empty()) {
33+
if (host.length() != 0) {
3434
out->println("-FAIL Missing host");
3535
return false;
3636
}
3737

3838
new_firebase_.reset(new Firebase(host));
39-
if (!auth.empty()) {
39+
if (auth.length() != 0) {
4040
new_firebase_->auth(auth);
4141
}
4242

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

utility

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
modem

0 commit comments

Comments
 (0)