minor formatting issue

This commit is contained in:
bunnie 2021-04-16 23:06:49 +08:00
parent 22d676cc59
commit 459026983c

View file

@ -112,7 +112,7 @@ impl<'a> ShellCmdApi<'a> for RtcCmd {
years: year,
weekday,
};
write!(ret, "Setting {}:{}:{}, {}/{}/{}, {:?}", hour, min, sec, month, day, year, weekday).unwrap();
write!(ret, "Setting {}:{:02}:{:02}, {}/{}/{}, {:?}", hour, min, sec, month, day, year, weekday).unwrap();
self.rtc.set_rtc(dt).unwrap();
}
},