You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When going from Thursday to Friday, program is trying to access in w the eight element. List is only seven elements long.
I replaced :
class RTC:
w = ["SAT","SUN","MON","TUE","WED","THU","FRI"]
with:
class RTC:
w = ["null","SAT","SUN","MON","TUE","WED","THU","FRI"]
Or weekday = self.w[self.bcd2bin(buffer[3])] should be
weekday = self.w[(self.bcd2bin(buffer[3]) - 1)]
The text was updated successfully, but these errors were encountered:
When going from Thursday to Friday, program is trying to access in w the eight element. List is only seven elements long.
I replaced :
class RTC:
w = ["SAT","SUN","MON","TUE","WED","THU","FRI"]
with:
class RTC:
w = ["null","SAT","SUN","MON","TUE","WED","THU","FRI"]
Or weekday = self.w[self.bcd2bin(buffer[3])] should be
weekday = self.w[(self.bcd2bin(buffer[3]) - 1)]
The text was updated successfully, but these errors were encountered: