make half duplex fn private

This commit is contained in:
Karun 2024-08-19 12:15:39 -04:00
parent fcf9b3239e
commit bbc06035c1

View File

@ -225,7 +225,7 @@ pub enum HalfDuplexConfig {
}
impl HalfDuplexConfig {
pub fn af_type(self) -> gpio::AfType {
fn af_type(self) -> gpio::AfType {
match self {
HalfDuplexConfig::PushPull => AfType::output(OutputType::PushPull, Speed::Medium),
HalfDuplexConfig::OpenDrainExternal => AfType::output(OutputType::OpenDrain, Speed::Medium),