From b930cf5fd6f48d1b2f60962efae53c028ee88097 Mon Sep 17 00:00:00 2001 From: Ivan Izaguirre Date: Sat, 28 Sep 2019 18:58:28 +0200 Subject: [PATCH] Ignore not implemented set time. --- microPD1990ac.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/microPD1990ac.go b/microPD1990ac.go index 0e9f733..427eb2b 100644 --- a/microPD1990ac.go +++ b/microPD1990ac.go @@ -1,7 +1,6 @@ package apple2 import ( - "fmt" "time" ) @@ -56,7 +55,8 @@ func (m *microPD1990ac) in(clock bool, strobe bool, command uint8, dataIn bool) case mpd1990commandTimeRead: m.loadTime() default: - panic(fmt.Sprintf("PD1990ac command %v not implemented.", m.command)) + // Ignore unknown commands (like set time) + //panic(fmt.Sprintf("PD1990ac command %v not implemented.", m.command)) } }