Permalink
Browse files

Work with actual transmitter code

  • Loading branch information...
1 parent 2652d38 commit 9552a60e5700bc1ce6b5b5e55ecbf46a6b3eea88 @osresearch committed Aug 10, 2013
Showing with 5 additions and 3 deletions.
  1. +1 −1 config.txt
  2. +2 −0 find-serial
  3. +2 −2 teensy-udp-rx.c
View
@@ -1,5 +1,5 @@
9999 # UDP port number
-10,128 # width,height in pixels (only 32 of the width are on this machine)
+210,64 # width,height in pixels (only 32 of the width are on this machine)
14401,0
14389,8,1:1,2:3,3:3,4:4
8987,16,1:4,2:3,3:2
View
@@ -2,6 +2,8 @@
# Locate the serial ports and their serial numbers.
# This can then be used to map devices to positions in the matrix.
+lsusb -v > /dev/null
+
for dev in `find /sys/devices/ -name '*ACM*' `;do
DIR=`dirname $dev`
TTY=`basename $dev`
View
@@ -456,7 +456,7 @@ main(
if (rlen < 0)
die("recv failed: %s\n", strerror(errno));
- if (buf[0] == '2')
+ if (buf[0] == 2)
{
// image type
printf("image type: %.*s\n",
@@ -466,7 +466,7 @@ main(
continue;
}
- if (buf[0] != '1')
+ if (buf[0] != 1)
{
// What is it?
warn_once("Unknown image type '%c' (%02x)\n",

0 comments on commit 9552a60

Please sign in to comment.