diff --git a/core/th7/service.go b/core/th7/service.go index b28827f..0a6e289 100644 --- a/core/th7/service.go +++ b/core/th7/service.go @@ -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)