diff --git a/rp2040/src/main.rs b/rp2040/src/main.rs index ab449af..76fc28a 100644 --- a/rp2040/src/main.rs +++ b/rp2040/src/main.rs @@ -624,18 +624,17 @@ fn main() -> ! { } } -/// Update status LED colour based on function layer and capslock +/// Update status LED colour /// -/// USB mode = green -/// Activity = flashing blue -/// Error = steady red (ERROR) +/// Waiting for USB enumerate = flashing green +/// USB mode (Normal mode) = green +/// Throttle hold mode = orange +/// Calibrating = flashing blue /// /// # Arguments /// * `status_led` - Reference to status LED -/// * `activity` - Reference to bool that indicates if there is activity /// * `usb_active` - Reference to bool that indicates if USB is active -/// * `axis_idle` - Reference to bool that indicates if all axis are in idle position -/// * `safety_check` - Reference to bool that indicates if safety check has passed +/// * `throttle_hold_enable` - Reference to bool that indicates if left y axis is hold (trimmed) fn update_status_led( status_led: &mut Ws2812StatusLed, usb_active: &bool, @@ -648,7 +647,7 @@ fn update_status_led( SM: StateMachineIndex, { if *calibration_active { - status_led.update(StatusMode::Warning); + status_led.update(StatusMode::ActivityFlash); } else if !*usb_active { status_led.update(StatusMode::NormalFlash); } else if *usb_active && *throttle_hold_enable {