Added ZVD debugging.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 21 Jun 2007 16:19:24 +0000 (16:19 +0000)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 21 Jun 2007 16:19:24 +0000 (16:19 +0000)
kokare.c

index 6635747..c475e80 100644 (file)
--- a/kokare.c
+++ b/kokare.c
@@ -228,7 +228,7 @@ int main(void)
        calcavg();
        triaccycle();
 
-#if 1
+#if 0
        /*
         * User interface
         */
@@ -291,6 +291,17 @@ int main(void)
            display(ttimea / 1000);
        }
 #endif
+#if 1
+#endif
+       /*
+        * ZVD debug
+        */
+       if(zok) {
+           if(++cur > 99)
+               cur = 0;
+           display(cur);
+           zok = 0;
+       }
 #if 0
        /*
          Phony Triac control