]> Joshua Wise's Git repositories - fpgaboy.git/blobdiff - binwire.c
Diag rom now runs from bootloader!
[fpgaboy.git] / binwire.c
index ed6b98c90a7aac056b2e4807a679e022cbf4c286..a878a5d39dbd799aa398739ff5edd2696c6c7c4e 100644 (file)
--- a/binwire.c
+++ b/binwire.c
@@ -45,7 +45,7 @@ void expect_no_chars()
 {
   int cs = 0;
   
-  while (waitchar(10) == 1)
+  while (waitchar(100) == 1)
   {
     char c;
     if (read(0, &c, 1) == 0)
@@ -77,10 +77,11 @@ void main(int argc, char **argv)
     exit(1);
   }
   
-  dowrite("\x1B" "A\x00\x00\x00...", 8);
+  dowrite("\x1B" "A\x00\x00\x00", 5);
   fprintf(stderr, "Address sent\n");
-  expect("A...", 4);
-  while ((sz = read(rfd, buf+3, 128)) > 0)
+  expect("A", 1);
+  expect_no_chars();
+  while ((sz = read(rfd, buf+3, 255)) > 0)
   {
     buf[0] = 0x1B;
     buf[1] = 'D';
This page took 0.024441 seconds and 4 git commands to generate.