Skip to content

Commit 91d885e

Browse files
committed
Fix node type
1 parent ea3358e commit 91d885e

File tree

7 files changed

+2090
-2077
lines changed

7 files changed

+2090
-2077
lines changed

wled00/NodeStruct.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#include <map>
99
#include <IPAddress.h>
1010

11-
#define NODE_TYPE_ID_UNDEFINED 0
12-
#define NODE_TYPE_ID_ESP8266 8266
13-
#define NODE_TYPE_ID_ESP32 32
11+
#define NODE_TYPE_ID_UNDEFINED 0
12+
#define NODE_TYPE_ID_ESP8266 82
13+
#define NODE_TYPE_ID_ESP32 32
1414

1515
/*********************************************************************************************\
1616
* NodeStruct

wled00/data/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,10 @@ button {
408408
display: inline-block;
409409
}
410410

411+
#kn td {
412+
padding-bottom: 12px;
413+
}
414+
411415
#lv {
412416
max-width: 600px;
413417
display: inline-block;

wled00/data/index.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
</div>
185185

186186
<div id="nodes" class="modal">
187-
<div id="ndlt">Other WLED instances on network</div>
187+
<div id="ndlt">WLED instances</div>
188188
<div id="kn">Loading...</div><br>
189189
<button class="btn infobtn" onclick="loadNodes()">Refresh</button>
190190
<button class="btn infobtn" onclick="toggleNodes()">Close list</button><br>

wled00/data/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,8 @@ function populateSegments(s)
568568

569569
function btype(b){
570570
switch (b) {
571-
case 1: return "ESP8266";
572571
case 32: return "ESP32";
573-
case 8266: return "ESP8266";
572+
case 82: return "ESP8266";
574573
}
575574
return "?";
576575
}
@@ -598,7 +597,7 @@ function populateNodes(i,n)
598597
if (nnodes == 0) cn += `No other instances found.`;
599598
cn += `<table class="infot">
600599
${urows}
601-
${inforow("Current node:",i.name)}
600+
${inforow("Current instance:",i.name)}
602601
</table>`;
603602
d.getElementById('kn').innerHTML = cn;
604603
}

wled00/fcn_declare.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void realtimeLock(uint32_t timeoutMs, byte md = REALTIME_MODE_GENERIC);
188188
void handleNotifications();
189189
void setRealtimePixel(uint16_t i, byte r, byte g, byte b, byte w);
190190
void refreshNodeList();
191-
void sendSysInfoUDP(uint8_t repeats=1);
191+
void sendSysInfoUDP();
192192

193193
//um_manager.cpp
194194
class Usermod {

wled00/html_ui.h

Lines changed: 2077 additions & 2065 deletions
Large diffs are not rendered by default.

wled00/udp.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,9 @@ void refreshNodeList()
407407
/*********************************************************************************************\
408408
Broadcast system info to other nodes. (to update node lists)
409409
\*********************************************************************************************/
410-
void sendSysInfoUDP(uint8_t repeats)
410+
void sendSysInfoUDP()
411411
{
412-
if (!udpConnected || !repeats) {
413-
return;
414-
}
412+
if (!udp2Connected) return;
415413

416414
IPAddress ip = Network.localIP();
417415

0 commit comments

Comments
 (0)