diff --git a/src/httpserver/http_fns.c b/src/httpserver/http_fns.c index 12f918558..f25afff4e 100644 --- a/src/httpserver/http_fns.c +++ b/src/httpserver/http_fns.c @@ -2505,6 +2505,13 @@ int http_fn_cfg_pins(http_request_t* request) { http_setup(request, httpMimeTypeHTML); http_html_start(request, "Pin config"); + +#if 0 + poststr(request, ""); + //poststr(request, ""); + poststr(request, ""); +#endif + poststr(request, "
The first field assigns a role to the given pin. The next field is used to enter channel index (relay index), used to support multiple relays and buttons. "); poststr(request, "So, first button and first relay should have channel 1, second button and second relay have channel 2, etc.
"); poststr(request, "Only for button roles another field will be provided to enter channel to toggle when doing double click. "); diff --git a/src/sim/Controller_BL0942.cpp b/src/sim/Controller_BL0942.cpp index 372c62ed5..26dc8b914 100644 --- a/src/sim/Controller_BL0942.cpp +++ b/src/sim/Controller_BL0942.cpp @@ -55,6 +55,16 @@ void CControllerBL0942::onDrawn() { } checksum ^= 0xFF; data[BL0942_PACKET_LEN - 1] = checksum; + + if (0) { + printf("BL0942 packet: "); + for (i = 0; i < BL0942_PACKET_LEN; i++) { + printf("%02X ", data[i]); + } + printf("\n"); + printf("Voltage = %.2f, Current = %.3f, Power = %.2f\n", realVoltage, realCurrent, realPower); + } + for (i = 0; i < BL0942_PACKET_LEN; i++) { UART_AppendByteToReceiveRingBuffer(data[i]); }