diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-01-14 22:23:56 -0800 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-02-10 09:06:41 -0800 |
commit | 6f9c03676bdf66274c199d296e98e7027324d22e (patch) | |
tree | b6b715bd4710ff6541f343a5af2706f7ad20c056 /teensy/lexermemzip.c | |
parent | 2e24ee8d80de20e879275c087ecc1ca9b4d27297 (diff) | |
download | micropython-6f9c03676bdf66274c199d296e98e7027324d22e.tar.gz micropython-6f9c03676bdf66274c199d296e98e7027324d22e.zip |
Updated teensy to work with latest on master
Added analogRead, analogWriteXxx and servo support for teensy.
Diffstat (limited to 'teensy/lexermemzip.c')
-rw-r--r-- | teensy/lexermemzip.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/teensy/lexermemzip.c b/teensy/lexermemzip.c index 2f808ee429..3e15717acf 100644 --- a/teensy/lexermemzip.c +++ b/teensy/lexermemzip.c @@ -2,6 +2,8 @@ #include <stdlib.h> #include "misc.h" +#include "mpconfig.h" +#include "qstr.h" #include "lexer.h" #include "memzip.h" @@ -13,6 +15,7 @@ mp_lexer_t *mp_lexer_new_from_memzip_file(const char *filename) if (memzip_locate(filename, &data, &len) != MZ_OK) { return NULL; } - return mp_lexer_new_from_str_len(filename, (const char *)data, (uint)len, 0); + + return mp_lexer_new_from_str_len(qstr_from_str(filename), (const char *)data, (uint)len, 0); } |