Temperature now can be set by simulator

This commit is contained in:
David Volovskiy 2025-08-23 11:45:53 -04:00
parent fb6978fde8
commit 877d972190

View File

@ -588,7 +588,10 @@ bool movement_set_accelerometer_motion_threshold(uint8_t new_threshold) {
float movement_get_temperature(void) {
#if __EMSCRIPTEN__
return 25;
#include <emscripten.h>
return EM_ASM_DOUBLE({
return temp_c || 25.0;
});
#endif
float temperature_c = (float)0xFFFFFFFF;