You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
72521a1c17
By default mingw outputs 3 digits instead of the standard 2 so all float tests using printf fail. Using setenv at the start of the program fixes this. To accomodate calling platform specific initialization a MICROPY_MAIN_INIT_FUNC macro is used which is called in mp_init()
6 lines
77 B
C
6 lines
77 B
C
#include <stdlib.h>
|
|
|
|
void init() {
|
|
putenv("PRINTF_EXPONENT_DIGITS=2");
|
|
}
|