]> mj.ucw.cz Git - home-hw.git/blobdiff - bsb/firmware/main.c
BSB: Cleanup
[home-hw.git] / bsb / firmware / main.c
index 04dc0e50681b523342d9203ad99e1c30b836d5e0..bb0c48e53bf140ae98ade0e46e9da73180760dbf 100644 (file)
@@ -125,7 +125,7 @@ static void random_init(void)
 #define BSB_TX_TIMEOUT 10000   // Total time to transmit a frame including all retries and waiting for reply [ms]
 #define BSB_REPLY_TIMEOUT 1000 // How long to wait for a reply [ms]
 
-#define DEBUG_BSB
+#undef DEBUG_BSB
 #ifdef DEBUG_BSB
 #define BSB_DEBUG(x) debug_putc(x)
 #else
@@ -432,7 +432,7 @@ static void bsb_send(byte *buf, uint len)
 static void bsb_check_reply(void)
 {
        // Match received frame in bsb_rx_status_and_frame to expected replies
-       // and set the status byte in byte 0.
+       // and set the status in byte 0.
 
        byte *frame = bsb_rx_status_and_frame + 1;
        // XXX: This might be executed too fast, so we can still be in TX_STATE_SENT