chore: make lint happy

This commit is contained in:
源文雨
2024-08-19 19:50:35 +08:00
parent c9939d145b
commit de558dc87b
3 changed files with 13 additions and 13 deletions

View File

@@ -44,10 +44,10 @@ func (t *Timer) Hour() (h int) {
}
// Minute 6bits
func (t *Timer) Minute() (min int) {
min = int(t.En1Month4Day5Week3Hour5Min6 & 0x00003f)
if min == 0b111111 {
min = -1
func (t *Timer) Minute() (m int) {
m = int(t.En1Month4Day5Week3Hour5Min6 & 0x00003f)
if m == 0b111111 {
m = -1
}
return
}
@@ -82,6 +82,6 @@ func (t *Timer) SetHour(h int) {
}
// SetMinute ...
func (t *Timer) SetMinute(min int) {
t.En1Month4Day5Week3Hour5Min6 = (int32(min) & 0x00003f) | (t.En1Month4Day5Week3Hour5Min6 & 0xffffc0)
func (t *Timer) SetMinute(m int) {
t.En1Month4Day5Week3Hour5Min6 = (int32(m) & 0x00003f) | (t.En1Month4Day5Week3Hour5Min6 & 0xffffc0)
}