summaryrefslogtreecommitdiffstats
path: root/aldl_pi.c
diff options
context:
space:
mode:
Diffstat (limited to 'aldl_pi.c')
-rw-r--r--aldl_pi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/aldl_pi.c b/aldl_pi.c
index c4a5ea7..2a74809 100644
--- a/aldl_pi.c
+++ b/aldl_pi.c
@@ -52,6 +52,8 @@ void delayfn(int ms)
/* Main */
int main (int argc, char **argv)
{
+ int run = 1;
+
/* Set up RPi GPIO */
wiringPiSetup();
@@ -65,8 +67,8 @@ int main (int argc, char **argv)
if (init_dash())
return -1;
- while(1) {
- render_dash();
+ while(run) {
+ run = render_dash();
sleep(1);
}