Skip to content

Commit b510c2a

Browse files
committed
Updated comments
1 parent 57fe168 commit b510c2a

File tree

1 file changed

+4
-6
lines changed
  • hardware/arduino/avr/libraries/Bridge/examples/TimeCheck

1 file changed

+4
-6
lines changed

hardware/arduino/avr/libraries/Bridge/examples/TimeCheck/TimeCheck.ino

+4-6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using an Arduino Yun.
88
99
created 27 May 2013
10+
modified 17 June 2013
1011
By Tom Igoe
1112
*/
1213

@@ -28,9 +29,7 @@ void setup() {
2829
// run an initial date process. Should return:
2930
// hh:mm:ss :
3031
if (!date.running()) {
31-
date.begin("date");
32-
date.addParameter("+%T");
33-
date.run();
32+
date.runShellCommand("date +%T");
3433
}
3534
}
3635

@@ -49,9 +48,7 @@ void loop() {
4948

5049
// restart the date process:
5150
if (!date.running()) {
52-
date.begin("date");
53-
date.addParameter("+%T");
54-
date.run();
51+
date.runShellCommand("date +%T");
5552
}
5653
}
5754

@@ -77,3 +74,4 @@ void loop() {
7774
}
7875

7976
}
77+

0 commit comments

Comments
 (0)