modify logger

This commit is contained in:
fengzhiqiang
2020-12-28 13:00:16 +08:00
parent c37f4b081f
commit 2d8f5c7907
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func OpenPort(device string, baudrate int, bytesize byte, stopbits byte) error {
//ReadPort read byte array from port
func ReadPort() ([]byte, int) {
buffer := make([]byte, 256)
buffer := make([]byte, 1)
if !ServerRunning {
return buffer, 0
}