-
Notifications
You must be signed in to change notification settings - Fork 232
Closed
Description
Steps to reproduce if you already have Lua-RTOS-ESP32 set up to 'make':
make clean
to clear out past makes.make
- choose 8 (Espressif Systems ESP-WROVER-KIT)
- choose 2 (Espressif Systems ESP-WROVER-KIT with OTA)
- Will warn about not being able to remove directories because they're not empty. It's fine.
- Fails in
components/sys/drivers/net.c
because the variabletotal
isn't declared before use on line 513.
The error given is:
Lua-RTOS-ESP32/components/sys/drivers/net.c: In function 'net_ota':
<development path I'm using>/Lua-RTOS-ESP32/components/sys/drivers/net.c:513:78: error: 'total' undeclared (first use in this function)
int pct = (int)(((float)(address-update_partition->address))/total*100);
It's strange because git blame shows:
b22ddc9 components/sys/drivers/net.c (the0ne 2020-01-09 07:43:20 +0100 513) int pct = (int)(((float)(address-update_partition->address))/*100);
Note the 2020 commit date. I'm surprised this wasn't found as a bug before. I have to wonder if this is my error somehow.
Metadata
Metadata
Assignees
Labels
No labels