Skip to content

Commit

Permalink
优化tryReadNewValues逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
smthing committed Jun 5, 2024
1 parent fbbb4df commit 10cf411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driverbox/helper/shadow/shadow.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (d *deviceShadow) UpdateDevicePointWriteTime(deviceId, pointName string) (e
if ok {
point := p.(DevicePoint)
point.LatestWriteTime = time.Now()
device.points.Store(pointName, p)
device.points.Store(pointName, point)
} else {
device.points.Store(pointName, DevicePoint{
Name: pointName,
Expand Down

0 comments on commit 10cf411

Please sign in to comment.