commit | 53b1109ec2aa574d6fae65a969516b312552b05b | [log] [tgz] |
---|---|---|
author | Daniel Petti <djpetti@me.com> | Sat Nov 02 05:53:16 2013 +0000 |
committer | Daniel Petti <djpetti@me.com> | Sat Nov 02 05:53:16 2013 +0000 |
tree | e2028287e1f4ed17b847feff4931ac491926dbe0 | |
parent | 4b4ec3de850ce1888c47b798767a7c6a9f9a92f2 [diff] |
Get gyro board situation fixed. - Finally got the dip switch thing working. (Not tested.) - Fixed issues with gyro_sensor_receiver.
diff --git a/gyro_board/src/usb/digital.c b/gyro_board/src/usb/digital.c index c468173..83ef169 100644 --- a/gyro_board/src/usb/digital.c +++ b/gyro_board/src/usb/digital.c
@@ -30,5 +30,9 @@ int is_bot3; void digital_init(void) { - is_bot3 = 0; + if (dip_switch(0) || dip_switch(1) || dip_switch(2) || dip_switch(3)) { + is_bot3 = 1; + } else { + is_bot3 = 0; + } }