Skip to content

Commit 50382b2

Browse files
committed
No qstr hash on all SAMD21
1 parent 7aadc84 commit 50382b2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ports/atmel-samd/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
// See https://github.com/micropython/micropython/pull/11353
5252
#define MICROPY_NLR_THUMB_USE_LONG_JUMP (1)
5353

54+
// Don't store qstr hashes and do string compares instead.
55+
#define MICROPY_QSTR_BYTES_IN_HASH (0)
5456

5557
#endif // SAMD21
5658

py/circuitpy_mpconfig.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ extern void common_hal_mcu_enable_interrupts(void);
142142
#define MICROPY_PY___FILE__ (1)
143143

144144
#if CIRCUITPY_FULL_BUILD
145+
#ifndef MICROPY_QSTR_BYTES_IN_HASH
145146
#define MICROPY_QSTR_BYTES_IN_HASH (1)
147+
#endif
146148
#else
147149
#define MICROPY_QSTR_BYTES_IN_HASH (0)
148150
#endif

0 commit comments

Comments
 (0)