aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge/examples/TimeCheck
diff options
context:
space:
mode:
authorTom Igoe <tom.igoe@gmail.com>2013-06-22 01:43:29 -0400
committerTom Igoe <tom.igoe@gmail.com>2013-06-22 01:43:53 -0400
commit8bd5990b70ffa7f6f3589acad2e70e0d48bc0b54 (patch)
treedc35f0eb6a71a17a09143181e15df2ce844668d6 /libraries/Bridge/examples/TimeCheck
parent4b851f7e9c7319502e76214ecd6a658470405dd9 (diff)
Updated comments
Diffstat (limited to 'libraries/Bridge/examples/TimeCheck')
-rw-r--r--libraries/Bridge/examples/TimeCheck/TimeCheck.ino10
1 files changed, 4 insertions, 6 deletions
diff --git a/libraries/Bridge/examples/TimeCheck/TimeCheck.ino b/libraries/Bridge/examples/TimeCheck/TimeCheck.ino
index 54fd131..0dd8dc3 100644
--- a/libraries/Bridge/examples/TimeCheck/TimeCheck.ino
+++ b/libraries/Bridge/examples/TimeCheck/TimeCheck.ino
@@ -7,6 +7,7 @@
using an Arduino Yun.
created 27 May 2013
+ modified 17 June 2013
By Tom Igoe
*/
@@ -28,9 +29,7 @@ void setup() {
// run an initial date process. Should return:
// hh:mm:ss :
if (!date.running()) {
- date.begin("date");
- date.addParameter("+%T");
- date.run();
+ date.runShellCommand("date +%T");
}
}
@@ -49,9 +48,7 @@ void loop() {
// restart the date process:
if (!date.running()) {
- date.begin("date");
- date.addParameter("+%T");
- date.run();
+ date.runShellCommand("date +%T");
}
}
@@ -77,3 +74,4 @@ void loop() {
}
}
+