modify logger
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user