From f322c79161da9387ad0292b9f6f59cea9532bc9a Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 8 Nov 2025 13:44:41 -0500 Subject: cal: add delay between transmissions to let eeprom write --- sw/cal/can.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw/cal/can.go') diff --git a/sw/cal/can.go b/sw/cal/can.go index 5bde703..7869687 100644 --- a/sw/cal/can.go +++ b/sw/cal/can.go @@ -19,7 +19,8 @@ const ( stdMask = 0x7FF extMask = 0x1FFFFFFF - timeout = 1 * time.Second + timeout = 1 * time.Second + eepromWriteDelay = 5 * time.Millisecond ) // Transmit a signal's encoding in a Signal Control frame so the Interface can store it in its EEPROM. @@ -94,6 +95,7 @@ func sendTable(tx *socketcan.Transmitter, tbl Table, sig int) error { if err != nil { return err } + time.Sleep(eepromWriteDelay) } return nil -- cgit v1.2.3