(&mut self, app: &mut S)
| 526 | eprintln!( |
| 527 | "[joycon] imu stuck at zero index={} side={:?}, retrying sensor enable", |
| 528 | index, side |
| 529 | ); |
| 530 | let _ = joycon1::enable_sensors(&device); |
| 531 | last_enable_retry = Instant::now(); |
| 532 | } |
| 533 | } else { |
| 534 | zero_started_at = None; |
| 535 | } |
| 536 | let _ = tx.send(JoyConEvent::Report { |
| 537 | index, |
| 538 | side, |
| 539 | data: payload, |
| 540 | source: JoyConReportSource::Hid, |
| 541 | raw_report: raw_dump_enabled() |
| 542 | .then(|| RawJoyConReport::new(data)) |
| 543 | .flatten(), |
| 544 | }); |
no test coverage detected