Skip to content

Commit

Permalink
a few small changes
Browse files Browse the repository at this point in the history
index.js
- makeWS: previewBoard: check if canvasNode exists
- makeWS: module found: check order present

pio.ini
- lolin_d32: no boot button
- lolin_s2_mini: boot button is pin0

SysModModel
- delete cleanUpModelDone
  • Loading branch information
ewowi committed Dec 15, 2024
1 parent 2f8c09b commit 1ed10cb
Show file tree
Hide file tree
Showing 4 changed files with 1,216 additions and 1,217 deletions.
5 changes: 3 additions & 2 deletions data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ function makeWS() {
if (buffer[0] == 0) {
let canvasNode = gId("Pins.board");
// console.log(buffer, canvasNode);
previewBoard(canvasNode, buffer);
if (canvasNode)
previewBoard(canvasNode, buffer);
}
else
userFun(buffer);
Expand All @@ -193,7 +194,7 @@ function makeWS() {
if (module.id == json.id)
found = true;
}
if (!found) {
if (!found && json.o) { //initModule done
model.push((json)); //this is the model
addModule(json);
}
Expand Down
4 changes: 2 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ build_flags =
; -DARDUINO_ARCH_ESP32 ; no proof of necessity yet...
-D CONFIG_IDF_TARGET_ESP32=1
-D ARDUINO_USB_CDC_ON_BOOT=0 ; Make sure that the right HardwareSerial driver is picked in arduino-esp32 (needed on "classic ESP32")
-D STARBASE_BOOT_BUTTON_PIN=0 ; boot pin on the esp32 board, check
; -D STARBASE_BOOT_BUTTON_PIN=0 ; no boot pin found on the board
lib_deps =
${env.lib_deps}

Expand All @@ -219,7 +219,7 @@ build_flags =
-D ARDUINO_USB_MODE=0 ; Make sure that the right HardwareSerial driver is picked in arduino-esp32 (mandatory on -S2)
; -D DEBUG=1 -D CORE_DEBUG_LEVEL=1 -D ARDUINOJSON_DEBUG=1 ; for more debug output
-D STARBASE_LOLIN_WIFI_FIX ; workaround for LOLIN C3/S2/S3 wifi instability. https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi
-D STARBASE_BOOT_BUTTON_PIN=18 ;check
-D STARBASE_BOOT_BUTTON_PIN=0 ;pin 0 works
lib_deps =
${env.lib_deps}

Expand Down
3 changes: 0 additions & 3 deletions src/Sys/SysModModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,6 @@ class SysModModel: public SysModule {
return round(exp(minv + scale*((float)value-minp)));
}

private:
bool cleanUpModelDone = false;

};

extern SysModModel *mdl;
Loading

0 comments on commit 1ed10cb

Please sign in to comment.