From 58776682e2bf94043dd79d0131c69947ef27dcae Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 28 Feb 2015 09:49:16 +0100 Subject: o Showing the value of the illegal command. --- app.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app.cpp') 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(); } -- cgit v1.2.3