vitotai / BrewPiLess

Use an ESP8266 to replace RPI and Arduino. Running BrewPi without Pi, therefore, BrewPi-Less
358 stars 135 forks source link

Building v4.4 #442

Open Rooo6 opened 2 weeks ago

Rooo6 commented 2 weeks ago

Trying to build the project (v4.4) i'm getting error messages: Version 4.3 worked for me and could be installed on esp32-dev

`Processing esp32-dev (platform: espressif32@~6.8.1; board: esp32dev; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html PLATFORM: Espressif 32 (6.8.1) > Espressif ESP32 Dev Module HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (esp-prog) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

Environment Status Duration


esp32-dev FAILED 00:00:15.350 ==================================== 1 failed, 0 succeeded in 00:00:15.350 ====================================

ce-designs commented 1 week ago

I can confirm that building the current master branch is not possible. I get the exact same errors.

roglioburigo commented 2 days ago

Find all code with if (SONOFF_NEWGEN) blocks and change to #if SONOFF_NEWGEN, idk if it is the best way to solve, but I think this will solve both problems. Eg.: src\TempControl.cpp before if (SONOFF_NEWGEN) { pinMode(relayIndicatorPin, OUTPUT); } After

if SONOFF_NEWGEN pinMode(relayIndicatorPin, OUTPUT); #endif

I`ve create a pull request with the fix

https://github.com/vitotai/BrewPiLess/pull/448