David-OConnor / stm32-hal

This library provides access to STM32 peripherals in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rtc example reselect_input() on wrong struct?

AShriki opened this issue · comments

clocks.reselect_input();

Hello! Thanks for working on this wonderful crate.
I noticed in the rtc example that reselect_input() is called on crate instead of a Clocks instance. it seems to me like you intended to call this method like so:
clock_cfg.reselect_input();
Please correct me if I'm wrong. I'm very new to rust so I may be misunderstanding.

You're correct - good catch. Fixed in latest commit.