Temperature now can be set by simulator
This commit is contained in:
parent
fb6978fde8
commit
877d972190
@ -588,7 +588,10 @@ bool movement_set_accelerometer_motion_threshold(uint8_t new_threshold) {
|
|||||||
|
|
||||||
float movement_get_temperature(void) {
|
float movement_get_temperature(void) {
|
||||||
#if __EMSCRIPTEN__
|
#if __EMSCRIPTEN__
|
||||||
return 25;
|
#include <emscripten.h>
|
||||||
|
return EM_ASM_DOUBLE({
|
||||||
|
return temp_c || 25.0;
|
||||||
|
});
|
||||||
#endif
|
#endif
|
||||||
float temperature_c = (float)0xFFFFFFFF;
|
float temperature_c = (float)0xFFFFFFFF;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user