diff options
| author | hathach <thach@tinyusb.org> | 2018-08-01 00:58:23 +0700 |
|---|---|---|
| committer | hathach <thach@tinyusb.org> | 2018-08-01 00:58:23 +0700 |
| commit | 1e524f1b9800b4d734e0c3db0fb6434176c4d7a8 (patch) | |
| tree | 06a6ffe912cb65d1bb78974d35f6b9eba3800c2a /py/persistentcode.c | |
| parent | 20c25f61d92cfde9f259ee06ee47915e7a3ea3c5 (diff) | |
| parent | bf033123a7fa75394fd7a01d17ec99afd9abe645 (diff) | |
Merge branch 'master' into nrf52840_usb_hid
Diffstat (limited to 'py/persistentcode.c')
| -rw-r--r-- | py/persistentcode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/py/persistentcode.c b/py/persistentcode.c index ba126a3fb..290797a7c 100644 --- a/py/persistentcode.c +++ b/py/persistentcode.c @@ -199,7 +199,11 @@ STATIC mp_raw_code_t *load_raw_code(mp_reader_t *reader) { // create raw_code and return it mp_raw_code_t *rc = mp_emit_glue_new_raw_code(); - mp_emit_glue_assign_bytecode(rc, bytecode, bc_len, const_table, + mp_emit_glue_assign_bytecode(rc, bytecode, + #if MICROPY_PERSISTENT_CODE_SAVE || MICROPY_DEBUG_PRINTERS + bc_len, + #endif + const_table, #if MICROPY_PERSISTENT_CODE_SAVE n_obj, n_raw_code, #endif |
