diff --git a/movement.c b/movement.c index 976d811d..dac3c08c 100644 --- a/movement.c +++ b/movement.c @@ -588,7 +588,10 @@ bool movement_set_accelerometer_motion_threshold(uint8_t new_threshold) { float movement_get_temperature(void) { #if __EMSCRIPTEN__ - return 25; +#include + return EM_ASM_DOUBLE({ + return temp_c || 25.0; + }); #endif float temperature_c = (float)0xFFFFFFFF;