X-Git-Url: http://git.rot13.org//?a=blobdiff_plain;f=firmware%2Fapps%2Fmonitor%2Fmonitor.c;h=4f36833d10d2d24d23fec4c2ca0a587ff2def804;hb=a25b880a237c5c2ee3a2639a27e558edac80f2d6;hp=039cf6e77ecca149dcd4c21b1ac36e5bad24671e;hpb=90bcaba3bfb6282df613a59dc74815f2ae4171d0;p=goodfet diff --git a/firmware/apps/monitor/monitor.c b/firmware/apps/monitor/monitor.c index 039cf6e..4f36833 100644 --- a/firmware/apps/monitor/monitor.c +++ b/firmware/apps/monitor/monitor.c @@ -51,8 +51,8 @@ app_t const monitor_app = { //! Handles a monitor command. void monitor_handle_fn(uint8_t const app, - uint8_t const verb, - uint32_t const len) + uint8_t const verb, + uint32_t const len) { int i; @@ -63,9 +63,10 @@ void monitor_handle_fn(uint8_t const app, break; case MONITOR_ECHO: - //Echo back the same buffer. - txdata(app,verb,len); - break; + //Echo back the same buffer. + debugstr("About to monitor echo."); + txdata(app,verb,len); + break; case MONITOR_LIST_APPS: // transmit firmware build date @@ -87,6 +88,8 @@ void monitor_handle_fn(uint8_t const app, cmddata[0]=memorybyte[cmddataword[0]]; #else debugstr("Monitor peeks are unsupported on this platform."); + debughex(cmddataword[0]); + cmddata[0]=0x00; #endif txdata(app,verb,1); break; @@ -98,6 +101,8 @@ void monitor_handle_fn(uint8_t const app, cmddata[0] = memorybyte[cmddataword[0]]; #else debugstr("Monitor pokes are unsupported on this platform."); + debughex(cmddataword[0]); + cmddata[0]=0x00; #endif txdata(app,verb,1); break;