Skip to content

Commit

Permalink
Better handling for test mode. Prints a message, sends more often
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Aug 21, 2013
1 parent 7a7bbfb commit 0281913
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/sensornet/sensornet.pde
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,18 @@ void loop(void)
// Pressing the button during startup sequences engages test mode.
// Pressing it after turns off test mode.
if ( startup_leds )
{
test_mode = true;
send_timer.setInterval(1000);
printf_P(PSTR("%lu: APP Start test mode\n\r"),millis());
}
else if ( test_mode )
{
test_mode = false;
Green = false;
Red = false;
send_timer.setInterval(8000);
printf_P(PSTR("%lu: APP Stop test mode\n\r"),millis());
}
else if ( calibration_mode )
{
Expand Down

0 comments on commit 0281913

Please sign in to comment.