From 6489ee1c6062d08e30cf86bf787ad64eb9fda269 Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Fri, 13 Jan 2017 16:07:39 -0500 Subject: [PATCH] robot id debug --- src/buzz_utility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buzz_utility.cpp b/src/buzz_utility.cpp index df62d1b..2c81b0d 100644 --- a/src/buzz_utility.cpp +++ b/src/buzz_utility.cpp @@ -272,8 +272,8 @@ namespace buzz_utility{ gethostname(hstnm, 30); /* Make numeric id from hostname */ /* NOTE: here we assume that the hostname is in the format Knn */ - int id = strtol(hstnm + 1, NULL, 10); //robot_id; - cout << " Robot ID" << id<< endl; + int id = strtol(hstnm + 2, NULL, 10); //robot_id; + cout << " Robot ID: " << (uint8_t)id<< endl; /* Reset the Buzz VM */ if(VM) buzzvm_destroy(&VM); VM = buzzvm_new(id);