Skip to content

Update to ESP core 3.x.x #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions UNOR4USBBridge/UNOR4USBBridge.ino
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ static void usbEventCallback(void* arg, esp_event_base_t event_base, int32_t eve

static uint32_t _baud = 0;
static CAtHandler atHandler(&SERIAL_AT);
USBCDC USBSerial(0);


bool enableSTA(bool enable);
Expand Down Expand Up @@ -120,12 +119,7 @@ void atLoop(void* param) {

/* -------------------------------------------------------------------------- */
void setup() {
/* -------------------------------------------------------------------------- */

/* redirect stdout */
stdout = funopen(NULL, NULL, &write_fn, NULL, NULL);
static char linebuf[256];
setvbuf(stdout, linebuf, _IOLBF, sizeof(linebuf));
/* -------------------------------------------------------------------------- */

/* redirect ets_printf / esp_rom_printf output */
ets_install_putc1(&ets_putc_handler);
Expand Down
1 change: 1 addition & 0 deletions UNOR4USBBridge/cmds_wifi_SSL.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ INCBIN(x509_crt_bundle, PATH_CERT_BUNDLE);
#endif

#include "at_handler.h"
#include "spi_flash_mmap.h"

void CAtHandler::add_cmds_wifi_SSL() {
/* ....................................................................... */
Expand Down
4 changes: 2 additions & 2 deletions compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
if [ ! -d hardware ]; then
mkdir -p hardware/esp32-patched
cd hardware/esp32-patched
git clone https://github.com/espressif/arduino-esp32 -b 2.0.9 --depth=1 esp32
git clone https://github.com/pennam/arduino-esp32 -b unor4wifi --depth=1 esp32
cd esp32
patch -p1 < ../../../core_esp32.patch
./tools/get.py
mv esp32-arduino-libs/ tools/
cd ../../../

sed s#PWD#$PWD#g arduino-cli.yaml.orig > arduino-cli.yaml
Expand Down
Loading