Skip to content

Commit

Permalink
Solved #21 #19 #4
Browse files Browse the repository at this point in the history
  • Loading branch information
BigeYoung committed Apr 27, 2022
1 parent d95f7ed commit 79af1ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion serial/testport.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ type testPort struct {
createdTime time.Time
}

var BoardSysTime time.Time = time.Now() // 虚拟电路板的系统时间

func newTestPort() serial.Port {
log.Println(BoardSysTime)
return &testPort{
readingAddresses: []uint32{},
createdTime: time.Now(),
createdTime: BoardSysTime,
}
}

Expand Down

0 comments on commit 79af1ee

Please sign in to comment.