mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
fix umm_malloc null ptr.
(endless reboot) like: ``` Fatal exception (28): epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000 Fatal exception (28): epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000 Fatal exception (28): epc1=0x402097e8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000001, depc=0x00000000 ``` ``` 0x402097e8: umm_info at umm_malloc/umm_malloc.c line 1000 ```
This commit is contained in:
parent
d2d1ca2fd2
commit
f8f0001e69
@ -971,6 +971,10 @@ void ICACHE_FLASH_ATTR *umm_info( void *ptr, int force ) {
|
|||||||
|
|
||||||
unsigned short int blockNo = 0;
|
unsigned short int blockNo = 0;
|
||||||
|
|
||||||
|
if (umm_heap == NULL) {
|
||||||
|
umm_init();
|
||||||
|
}
|
||||||
|
|
||||||
/* Protect the critical section... */
|
/* Protect the critical section... */
|
||||||
UMM_CRITICAL_ENTRY();
|
UMM_CRITICAL_ENTRY();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user