Closed fuglaro closed 1 year ago
Also posted on the issue post #63:
We might keep the native emitter if we can get rid of the exceptions. Try these changes and see if the problem is still reproduced:
# Get entry from volatile dictionary @micropython.native def getItem(self, key): ret = self.volatileDict.get(key, None) if ret is None: # Look for a bytes item under the key ret = self.volatileDict.get("__b"+key, None) return (None if ret is None else b64dec(ret)) return ret # Delete entry in volatile dictionary @micropython.native def delItem(self, key): ret = self.volatileDict.pop(key, None) if ret is None: ret = self.volatileDict.pop("__b"+key, None) return (None if ret is None else b64dec(ret)) return ret
That's better and I tested it in the emulator and that fixes it and works great!
FIXES #62
micropython.native. For this code:
I get this when running in FAST EXECUTE:
BUT this when running in the emulator?!?!?!