Browse Source

Update mym2serial.c

Correct the "VBLANK" time to be 50Hz and not 60Hz. Also changed a bit the display of current VBL to stay on one line instead of spread multiple lines.
Godzil 10 years ago
parent
commit
72a6fe94b9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      mym2serial.c

+ 3 - 2
mym2serial.c

@@ -212,9 +212,10 @@ int main(int argc,char *argv[])
             }
             write(serial_fd, buffer, 14);
             // 50Hz so wait a little bit...
-            printf("VBL%ld\n", n);
-            usleep(16*1000);
+            printf("\rVBL%ld ", n);
+            usleep(20*1000); /* 50Hz */
         }
+        printf("\n");
     }
     else
     {