Skip to main content

normalize_controller_key

Function normalize_controller_key 

Source
pub fn normalize_controller_key(port_name: &str) -> String
Expand description

A port name without the number some systems append, such as "APC40 [2]" → "APC40", so a controller keeps its mapping when it is plugged in again.