Skip to content

Commit

Permalink
fixed example (tried to clarify the code, but had moved run to the wr…
Browse files Browse the repository at this point in the history
…ong place.) It's late! :)
  • Loading branch information
m-mcgowan committed Jun 25, 2014
1 parent 19b2a7a commit cee8730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion firmware/examples/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ void setup()

void loop()
{
static bool run = false;
if (Serial.available()) {
char c = Serial.read();
if (c=='t') {
static bool run = false;
if (!run) {
Serial.println("Running tests");
run = true;
Expand Down
2 changes: 1 addition & 1 deletion spark.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unit-test",
"version": "0.0.2",
"version": "0.1.0",
"author": "mdma https://community.spark.io/users/mdma",
"license": "MIT",
"description": "Unit testing on the spark"
Expand Down

0 comments on commit cee8730

Please sign in to comment.