kopia lustrzana https://github.com/micropython/micropython
Make qstr_init reinitialize last_pool.
This causes the pool to get reinitialized properly on a soft-reset.pull/88/head
rodzic
12e2656472
commit
d986b582c0
|
@ -36,10 +36,10 @@ const static qstr_pool_t const_pool = {
|
|||
},
|
||||
};
|
||||
|
||||
static qstr_pool_t *last_pool = (qstr_pool_t*)&const_pool; // we won't modify the const_pool since it has no allocated room left
|
||||
static qstr_pool_t *last_pool;
|
||||
|
||||
void qstr_init(void) {
|
||||
// nothing to do!
|
||||
last_pool = (qstr_pool_t*)&const_pool; // we won't modify the const_pool since it has no allocated room left
|
||||
}
|
||||
|
||||
static qstr qstr_add(const char *str) {
|
||||
|
|
Ładowanie…
Reference in New Issue