]> Git Repo - pov-display-rpi.git/blobdiff - src/main.cpp
fixed errors and fromating
[pov-display-rpi.git] / src / main.cpp
index 9f00f482f7ae49b15cfcc6d7fc1045b98b1374ae..d302af427cc1d7df9d5748cbc7fec027c5039ebc 100644 (file)
@@ -7,7 +7,10 @@ int main(int argc, char *argv[])
     uint16_t test[12] = {0};
     tlc59711_init("/dev/spidev1.1");
     while(1){
-        tlc59711_send(test);
+        int ret;
+        if((ret = tlc59711_send(test)) < 0 ){
+            exit(ret);
+        }
     }
        return 0;
 }
This page took 0.022675 seconds and 4 git commands to generate.