X-Git-Url: https://git.karo-electronics.de/?p=oswald.git;a=blobdiff_plain;f=metawatch%2Fmw_main.c;fp=metawatch%2Fmw_main.c;h=fa1f98e41bba605d2059e0918b06d23fa9f0a0db;hp=4f8ee90b01e77ea6930ad91601becdbbdabee447;hb=3e320aaa4175a0ed469581f1dea2eac35b390878;hpb=ac20c9d8b06609636166c7f3fa38f97561a21af6 diff --git a/metawatch/mw_main.c b/metawatch/mw_main.c index 4f8ee90..fa1f98e 100644 --- a/metawatch/mw_main.c +++ b/metawatch/mw_main.c @@ -337,6 +337,11 @@ static void handle_uart_rx_event(void) mw_acc_read(&x, &y, &z); snprintf(tstr, 64, "x:%d y:%d z:%d\n", x,y,z); debug_uart_tx(tstr); + } else if (c =='R') { + int16_t al; + al = mw_get_amblight_adc_val(); + snprintf(tstr, 64, "light: %d\n", al); + debug_uart_tx(tstr); } else if (c == 'b') { debug_uart_tx("\nenabling BT\n"); mw_enable_bt();