Skip to content

Commit

Permalink
webota.onStart
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Oct 26, 2023
1 parent 83d9fc7 commit e1b598b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sensor/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ lib_deps =
https://github.com/dawidchyrzynski/arduino-home-assistant.git#2.0.0
links2004/WebSockets@^2.3.7
https://github.com/EinarArnason/ArduinoQueue.git@^1.2.5
https://github.com/scottchiefbaker/ESP-WebOTA.git#aefb6c1a9190601b12b973a0c1cce39cb4e0f453
https://github.com/netmindz/ESP-WebOTA.git#disable-interrupts
https://github.com/netmindz/balboaGL.git#0b6fc2fcfec5997397bdc8aaf6c9e4eeadaf4cc1
build_flags= -DtubUART=UART_NUM_2

Expand Down
4 changes: 2 additions & 2 deletions sensor/src/sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ void setPixel(uint8_t color) {
* every time our panel is selected
*/
void attachPanelInterrupt() {
attachInterrupt(digitalPinToInterrupt(PIN_5_PIN), clearRXBuffer, FALLING);
attachInterrupt(digitalPinToInterrupt(PIN_5_PIN_DEF), clearRXBuffer, FALLING);
}


Expand Down Expand Up @@ -354,7 +354,7 @@ void setup() {
webota
.onStart([]() {
Serial.println("Start updating");
detachInterrupt(digitalPinToInterrupt(PIN_5_PIN));
detachInterrupt(digitalPinToInterrupt(PIN_5_PIN_DEF));
})
.onEnd([]() {
Serial.println("\nOTA End");
Expand Down

0 comments on commit e1b598b

Please sign in to comment.