From 452539ec0f12c4181b2300e5e2611f2879989f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Mon, 3 Feb 2025 09:36:06 +0100 Subject: [PATCH] Explain Other(0) --- esp-hal/src/clock/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esp-hal/src/clock/mod.rs b/esp-hal/src/clock/mod.rs index 72892acd59..3d401784bd 100644 --- a/esp-hal/src/clock/mod.rs +++ b/esp-hal/src/clock/mod.rs @@ -341,7 +341,7 @@ impl Clocks { } else { const { match esp_config::esp_config_str!("ESP_HAL_CONFIG_XTAL_FREQUENCY").as_bytes() { - b"auto" => XtalClock::Other(0), + b"auto" => XtalClock::Other(0), // Can't be `unreachable!` due to const eval. b"26" => XtalClock::_26M, b"40" => XtalClock::_40M, other => XtalClock::Other(esp_config::esp_config_int_parse!(u32, other)), @@ -392,7 +392,7 @@ impl Clocks { } else { const { match esp_config::esp_config_str!("ESP_HAL_CONFIG_XTAL_FREQUENCY").as_bytes() { - b"auto" => XtalClock::Other(0), + b"auto" => XtalClock::Other(0), // Can't be `unreachable!` due to const eval. b"26" => XtalClock::_26M, b"40" => XtalClock::_40M, other => XtalClock::Other(esp_config::esp_config_int_parse!(u32, other)),