From 4493d3e65bcfc9f0688ef427a9bca1d4fad94bed Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Wed, 6 Sep 2023 10:16:25 +0530 Subject: [PATCH] folder --- hemocube/{ => hemocube_mock}/hemocube_mock.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename hemocube/{ => hemocube_mock}/hemocube_mock.ino (83%) diff --git a/hemocube/hemocube_mock.ino b/hemocube/hemocube_mock/hemocube_mock.ino similarity index 83% rename from hemocube/hemocube_mock.ino rename to hemocube/hemocube_mock/hemocube_mock.ino index 583ac65..ca5afdb 100644 --- a/hemocube/hemocube_mock.ino +++ b/hemocube/hemocube_mock/hemocube_mock.ino @@ -16,14 +16,14 @@ void loop() { Serial.println("#Buffer Completed"); } - while (Serial.available() == 0) {} //wait for data available - String SampleCommand = Serial.readString(); //read until timeout - SampleCommand.trim(); // remove any \r \n whitespace at the end of the String - if (SampleCommand == "S") { + // while (Serial.available() == 0) {} //wait for data available + // String SampleCommand = Serial.readString(); //read until timeout + // SampleCommand.trim(); // remove any \r \n whitespace at the end of the String + // if (SampleCommand == "S") { Serial.println("#Sample Started"); delay(2000); Serial.println("#Sample Completed"); - } + // } while (Serial.available() == 0) {} //wait for data available String resultCommand = Serial.readString(); //read until timeout