From b2277d12e8e0c51f9e59d4b29d630cdb2e6636d9 Mon Sep 17 00:00:00 2001 From: Georg Date: Tue, 27 Mar 2018 18:32:09 +0200 Subject: [PATCH] Changed coments accordingly and changed for better "collapsability" --- bluetooth.ino | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bluetooth.ino b/bluetooth.ino index 23ed8ba..6e40a20 100644 --- a/bluetooth.ino +++ b/bluetooth.ino @@ -258,7 +258,8 @@ void serialCom() { if (command == '#') { //1 General Info Command if (subCommand == '1') { // Get All Drinks print_drinks_JSON(box, &Serial); - } else if (subCommand == '2') { // Get All persons + } + else if (subCommand == '2') { // Get All persons Serial.print("{\"persons\":["); for (int i = 0; i < box->personCount; i++) { if (i != 0)Serial.print(","); @@ -276,8 +277,9 @@ void serialCom() { print_person_JSON(box, &persons[i], &Serial, false); } Serial.println("{\"Success\"}"); - } - } else if (command == '!') { //2 User Managment Command + } + } + else if (command == '!') { //2 User Managment Command if (subCommand == '1') { // Create new User char incomingByte = Serial.read(); String personName = data; @@ -484,7 +486,7 @@ void serialCom() { } }//set name } // User Managment Command - } //BLE available + } //Serial available }//end function