aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-02-28 09:49:16 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-02-28 09:49:16 +0100
commit58776682e2bf94043dd79d0131c69947ef27dcae (patch)
tree28fefd85af056450023d41f6f8dcdc4d280ca08c
parent08c4dca9cb42d419c471d8117848515e8100d614 (diff)
downloadtrygvisio_soil_moisture-58776682e2bf94043dd79d0131c69947ef27dcae.tar.gz
trygvisio_soil_moisture-58776682e2bf94043dd79d0131c69947ef27dcae.tar.bz2
trygvisio_soil_moisture-58776682e2bf94043dd79d0131c69947ef27dcae.tar.xz
trygvisio_soil_moisture-58776682e2bf94043dd79d0131c69947ef27dcae.zip
o Showing the value of the illegal command.
-rw-r--r--app.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/app.cpp b/app.cpp
index 05feaaa..a46734e 100644
--- a/app.cpp
+++ b/app.cpp
@@ -325,7 +325,8 @@ void write_req(struct sm_req const& req) {
break;
default:
- Serial.print("Unknown command!");
+ Serial.print("Unknown command: ");
+ Serial.print(req.code);
}
Serial.println();
}
@@ -371,7 +372,8 @@ void write_res(struct sm_res const& res) {
break;
default:
- Serial.print("Unknown command!");
+ Serial.print("Unknown command: ");
+ Serial.print(res.code);
}
Serial.println();
}