Skip to content

Commit df4be55

Browse files
committed
Net Debug = Net print and tablet pc mode on 1024
1 parent d74f41d commit df4be55

File tree

8 files changed

+1664
-1664
lines changed

8 files changed

+1664
-1664
lines changed

wled00/FX_fcn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ CRGBPalette16 &Segment::loadPalette(CRGBPalette16 &targetPalette, uint8_t pal) {
258258
break;}
259259
case 73: {//periodically replace palette with a random one. Transition palette change in 500ms
260260
uint32_t timeSinceLastChange = millis() - _lastPaletteChange;
261-
if (timeSinceLastChange > 5000 /*+ ((uint32_t)(255-intensity))*100*/) {
261+
if (timeSinceLastChange > randomPaletteChangeTime * 1000U) {
262262
prevRandomPalette = randomPalette;
263263
randomPalette = CRGBPalette16(
264264
CHSV(random8(), random8(160, 255), random8(128, 255)),

wled00/data/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ TD .checkmark, TD .radiomark {
15171517
}
15181518
}
15191519

1520-
@media all and (max-width: 798px) {
1520+
@media all and (max-width: 1024px) {
15211521
#buttonPcm {
15221522
display: none;
15231523
}

wled00/data/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ function populateInfo(i)
675675
cn += `v${i.ver} &nbsp;<i>"${vcn}"</i><p>(WLEDMM_${i.ver} ${i.rel}.bin)</p><p><em>build ${i.vid}</em></p><table>
676676
${urows}
677677
${urows===""?'':'<tr><td colspan=2><hr style="height:1px;border-width:0;color:SeaGreen;background-color:Seagreen"></td></tr>'}
678-
${i.opt&0x100?inforow("Net Serial ☾","<button class=\"btn btn-xs\" onclick=\"requestJson({'netDebug':"+(i.opt&0x0080?"false":"true")+"});\"><i class=\"icons "+(i.opt&0x0080?"on":"off")+"\">&#xe08f;</i></button>"):''}
678+
${i.opt&0x100?inforow("Net Print ☾","<button class=\"btn btn-xs\" onclick=\"requestJson({'netDebug':"+(i.opt&0x0080?"false":"true")+"});\"><i class=\"icons "+(i.opt&0x0080?"on":"off")+"\">&#xe08f;</i></button>"):''}
679679
${i.serialOnline?inforow(i.serialOnline,"TX="+i.sTX,"; RX="+i.sRX):""}
680680
${i.opt&0x100?'<tr><td colspan=2><hr style="height:1px;border-width:0;color:GoldenRod;background-color:GoldenRod"></td></tr>':''}
681681
${inforow("Build",i.vid)}
@@ -3247,10 +3247,10 @@ function togglePcMode(fromB = false)
32473247
localStorage.setItem('pcm', pcModeA);
32483248
pcMode = pcModeA;
32493249
}
3250-
if (wW < 798 && !pcMode) return;
3251-
if (!fromB && ((wW <= 798 && lastw <= 798) || (wW > 798 && lastw > 798))) return;
3250+
if (wW < 1024 && !pcMode) return;
3251+
if (!fromB && ((wW <= 1024 && lastw <= 1024) || (wW > 1024 && lastw > 1024))) return;
32523252
openTab(0, true);
3253-
if (wW <= 798) {pcMode = false;}
3253+
if (wW <= 1024) {pcMode = false;}
32543254
else if (pcModeA && !fromB) pcMode = pcModeA;
32553255
updateTablinks(0);
32563256
gId('buttonPcm').className = (pcMode) ? "active":"";

wled00/data/settings_sync.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ <h3>Serial</h3>
246246
<option value=15000>1500000</option>
247247
</select><br>
248248
<i>Keep at 115200 to use Improv. Some boards may not support high rates.</i>
249-
<h3>Net Serial</h3>
249+
<h3>Net Print</h3>
250250
<div id="NoNetDebug" class="hide">
251-
<em style="color:#fa0;">This firmware build does not include Net Serial support.<br></em> <!--WLEDMM we call it Net Serial-->
251+
<em style="color:#fa0;">This firmware build does not include Net Print support.<br></em> <!--WLEDMM we call it Net Print-->
252252
</div>
253253
<div id="NetDebug"> <!--WLEDMM-->
254254
Netcat host IP:<br>

wled00/html_settings.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ const uint8_t PAGE_settings_ui[] PROGMEM = {
10851085

10861086

10871087
// Autogenerated from wled00/data/settings_sync.htm, do not edit!!
1088-
const uint16_t PAGE_settings_sync_length = 3650;
1088+
const uint16_t PAGE_settings_sync_length = 3653;
10891089
const uint8_t PAGE_settings_sync[] PROGMEM = {
10901090
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0xad, 0x5a, 0xeb, 0x72, 0xdb, 0x36,
10911091
0x16, 0xfe, 0xcf, 0xa7, 0x40, 0xd8, 0x99, 0x56, 0xaa, 0x65, 0xdd, 0x6c, 0x39, 0x8e, 0x2d, 0x32,
@@ -1303,19 +1303,19 @@ const uint8_t PAGE_settings_sync[] PROGMEM = {
13031303
0xd5, 0x28, 0x4a, 0xb5, 0xd0, 0x56, 0x43, 0x09, 0xf8, 0x27, 0x63, 0x11, 0xe2, 0x59, 0xad, 0x2b,
13041304
0x2c, 0x91, 0x88, 0x73, 0xb4, 0xa5, 0xaa, 0x64, 0xc8, 0xa1, 0x8f, 0x1c, 0x71, 0x1a, 0xbb, 0x1a,
13051305
0x5a, 0xa3, 0x81, 0x52, 0x73, 0x93, 0x29, 0x98, 0x59, 0xd9, 0x23, 0x3b, 0x3f, 0xde, 0x43, 0xa4,
1306-
0x24, 0x33, 0x93, 0xff, 0xf7, 0xdf, 0xff, 0x29, 0xd6, 0x3c, 0x78, 0xdb, 0x65, 0xa3, 0x64, 0xf2,
1307-
0x77, 0x16, 0xbe, 0xb9, 0x15, 0x37, 0xd6, 0xbd, 0x7c, 0x7d, 0x3c, 0xa5, 0x85, 0xb6, 0x4a, 0x75,
1308-
0x0f, 0x4b, 0x93, 0xeb, 0x75, 0x7d, 0x75, 0x7e, 0x32, 0x36, 0x67, 0xc7, 0xeb, 0xc6, 0x6b, 0xd2,
1309-
0x9b, 0xf1, 0x82, 0xbc, 0xf9, 0x1a, 0xf2, 0x19, 0x75, 0x76, 0xdc, 0xfe, 0xea, 0xe4, 0x3a, 0xaf,
1310-
0x0e, 0x85, 0xbe, 0xd3, 0x63, 0x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f1, 0x9a, 0xe4, 0x66, 0xbc, 0x20, 0x6f, 0xbe, 0x86, 0x7c, 0x46, 0x9d, 0x1d, 0xb6, 0xbf, 0x3a,
1310+
0xb5, 0xce, 0xab, 0x43, 0x61, 0xef, 0xf4, 0xd0, 0x73, 0x5e, 0xa6, 0xfe, 0xda, 0xa3, 0xb8, 0x77,
1311+
0xf8, 0x0f, 0x64, 0x41, 0x87, 0xea, 0x8d, 0x49, 0x1d, 0x1a, 0xcd, 0x31, 0x85, 0x4e, 0x4a, 0x9f,
1312+
0xef, 0xbd, 0x3d, 0x3c, 0x38, 0x24, 0x8f, 0x1e, 0x60, 0x81, 0x11, 0x43, 0xef, 0x72, 0x33, 0x7c,
1313+
0x80, 0xd3, 0xf1, 0xcb, 0x3e, 0x5c, 0xf8, 0x57, 0x2f, 0xfa, 0x8d, 0xe0, 0x17, 0x75, 0x90, 0x8d,
1314+
0x75, 0x5a, 0xd1, 0x9f, 0xb1, 0xa8, 0x64, 0xa1, 0xbe, 0x5b, 0x69, 0x03, 0xfc, 0xb3, 0xa1, 0x15,
1315+
0xdc, 0xf5, 0xc9, 0xaf, 0xc8, 0xf7, 0x37, 0xb2, 0x9b, 0xb4, 0x6b, 0x38, 0xa8, 0xf8, 0xe9, 0x56,
1316+
0x0e, 0xbf, 0x9c, 0xd8, 0xf0, 0x19, 0xc7, 0x6b, 0xbe, 0xc8, 0x30, 0xe6, 0xbe, 0xf6, 0xc0, 0xaf,
1317+
0x4e, 0xe0, 0x0f, 0x7e, 0x99, 0x82, 0x9f, 0xa9, 0xe0, 0x37, 0xa9, 0xff, 0x03, 0xc2, 0xe7, 0x0c,
1318+
0x2d, 0xa3, 0x2a, 0x00, 0x00
13191319
};
13201320

13211321

0 commit comments

Comments
 (0)