Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jepohle committed May 28, 2024
1 parent b6b8cf8 commit 3768ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/firmware.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <MsgPack.h>

// input to msgpack
MsgPack::arr_t<int> v {1, 2, 3, 4}; // std::vector or arx::stdx::vector
MsgPack::arr_t<int> v {1, 2, 3, 4}; // Data stored as {reading1, reading2, reading3, time passed}
int prev;
int timer;
String mode;
Expand All @@ -19,7 +19,7 @@ void setup() {
digitalWrite(5, HIGH);
// Wait for start message to be sent
while (Serial.available()==0){}
if (Serial.available() != 0){ // Initilise IO for first readings
if (Serial.available() != 0){ // Initilise IO for first readings
mode = Serial.readString();
enable_io(mode);
}
Expand Down

0 comments on commit 3768ead

Please sign in to comment.