write pcb table to adapter ratio table
This commit is contained in:
parent
fd9e8617b5
commit
daf0c957b6
@ -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.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)
|
elapsed := time.Since(timer_start)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user