Fix: correction to wrong matching function used for aura data find

Closes #607
This commit is contained in:
Luke Jones
2025-02-07 09:43:18 +13:00
parent d30f7dc2ea
commit c77e7cf1ce
4 changed files with 29 additions and 35 deletions

View File

@@ -91,7 +91,7 @@ impl LedSupportFile {
/// to ensure we match to *whole names* first before doing a glob match
fn match_device(&self, device_name: &str, product_id: &str) -> LedSupportData {
for config in self.0.iter().rev() {
if device_name.eq_ignore_ascii_case(&config.device_name) {
if device_name.contains(&config.device_name) {
info!("Matched to {}", config.device_name);
if !config.product_id.is_empty() {
info!("Checking product ID");