write pcb table to adapter ratio table

This commit is contained in:
William Clark 2022-12-05 13:25:30 +00:00
parent fd9e8617b5
commit daf0c957b6

View File

@ -127,9 +127,19 @@ func startCacheService(t *TH7Adapter) {
}
t.mu.Lock()
// maybe update the pcb table here ?
t.mu.Lock() // LOCK
t.data = data
t.mu.Unlock()
// update the ratio table of the TH7 adapter
table := t.pcbPort.GetTable()
t.table.Pivdd = table.Pivdd
t.table.Vadj = table.Vadj
t.table.Vref = table.Vref
t.mu.Unlock() // UNLOCK
elapsed := time.Since(timer_start)