HideakiAbe / ESP32Repository

Arduino ESP32 graphic library
GNU Lesser General Public License v3.0
4 stars 0 forks source link

warning via compilation. and esp32 reboot #3

Open kang2k10 opened 2 years ago

kang2k10 commented 2 years ago

Via compilation demo scetch "SimpleGraph", arduino ide, write warning

C:\Arduino\libraries\ESP32Repository-main\src\webGraphLib.cpp: In member function 'line* line::addPoint(float, float)':
C:\Arduino\libraries\ESP32Repository-main\src\webGraphLib.cpp:347:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
C:\Arduino\libraries\ESP32Repository-main\src\webGraphLib.cpp: In member function 'unsigned int line::scan()':
C:\Arduino\libraries\ESP32Repository-main\src\webGraphLib.cpp:329:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

But scetch upload succes, In serial monitor:

Connecting to WiFi network
.....
WiFi connected
IP address: 
192.168.1.25

You can now access graph to http://192.168.1.25
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x400dc8ce  PS      : 0x00060630  A0      : 0x800dc8c0  A1      : 0x3ffb2770  
A2      : 0x00000000  A3      : 0x3ffdd528  A4      : 0x00000000  A5      : 0x00000000  
A6      : 0x00000001  A7      : 0x00000019  A8      : 0x00000001  A9      : 0x00000000  
A10     : 0x00000000  A11     : 0x00000001  A12     : 0x00000001  A13     : 0x00010001  
A14     : 0x00000001  A15     : 0x00000001  SAR     : 0x0000001a  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000084  LBEG    : 0x400ec18c  LEND    : 0x400ec196  LCOUNT  : 0x00000000  

Backtrace:0x400dc8cb:0x3ffb27700x400dc8bd:0x3ffb2790 0x400d26f9:0x3ffb27b0 0x400e16d7:0x3ffb2820 
markeby commented 9 months ago

The first error I got was such. I discovered that there were many functions that were to return a point to a class but no appropriate return statement. This is functionally sound just not accurately written and the compiler doesn't catch it and should. I have cloned this and am fixing all that is broke and work on enhancements.