Browse Source

Fix RFBridge not showing codes in web UI as per @mcspr suggested change (#1571)

rules-rpn
Xose Pérez 5 years ago
parent
commit
a7aa8363e4
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      code/espurna/rfbridge.ino

+ 3
- 1
code/espurna/rfbridge.ino View File

@ -89,6 +89,7 @@ static bool _rfbToChar(byte * in, char * out, int n = RF_MESSAGE_SIZE) {
#if WEB_SUPPORT #if WEB_SUPPORT
void _rfbWebSocketSendCodeArray(unsigned char start, unsigned char size) { void _rfbWebSocketSendCodeArray(unsigned char start, unsigned char size) {
DynamicJsonBuffer jsonBuffer; DynamicJsonBuffer jsonBuffer;
JsonObject& root = jsonBuffer.createObject(); JsonObject& root = jsonBuffer.createObject();
@ -104,7 +105,8 @@ void _rfbWebSocketSendCodeArray(unsigned char start, unsigned char size) {
off.add(rfbRetrieve(id, false)); off.add(rfbRetrieve(id, false));
} }
wsSend(rfb);
wsSend(root);
} }
void _rfbWebSocketSendCode(unsigned char id) { void _rfbWebSocketSendCode(unsigned char id) {


Loading…
Cancel
Save