esp32_s3_box: Implement unimplemented function

Fixes panic when touching the screen on the carousel demo
This commit is contained in:
Olivier Goffart 2023-02-21 11:58:55 +01:00 committed by Olivier Goffart
parent 8a299fbff2
commit 5850e5655e

View file

@ -240,8 +240,8 @@ extern "C" fn fminf(a: f32, b: f32) -> f32 {
}
}
#[no_mangle]
extern "C" fn fmodf() {
unimplemented!("fmodf");
extern "C" fn fmodf(a: f32, b: f32) -> f32 {
((a as u32) % (b as u32)) as f32
}
#[no_mangle]
extern "C" fn fmod(a: f64, b: f64) -> f64 {