aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/machine_rp2040_rtc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine/machine_rp2040_rtc.go')
-rw-r--r--src/machine/machine_rp2040_rtc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machine_rp2040_rtc.go b/src/machine/machine_rp2040_rtc.go
index 192e187c0..072432fc0 100644
--- a/src/machine/machine_rp2040_rtc.go
+++ b/src/machine/machine_rp2040_rtc.go
@@ -97,7 +97,7 @@ func toAlarmTime(delay uint32) rtcTime {
func (rtc *rtcType) setDivider() {
// Get clk_rtc freq and make sure it is running
- rtcFreq := configuredFreq[clkRTC]
+ rtcFreq := configuredFreq[ClkRTC]
if rtcFreq == 0 {
panic("can not set RTC divider, clock is not running")
}