forked from M-Labs/artiq
1
0
Fork 0

devices/thorlabs_tcube: minor cleanup

This commit is contained in:
Sebastien Bourdeauducq 2015-11-25 21:43:22 +08:00
parent 178f3cd815
commit e1e082e2ec
1 changed files with 1 additions and 3 deletions

View File

@ -4,8 +4,6 @@ import struct as st
import serial
from artiq.language.units import V
logger = logging.getLogger(__name__)
@ -174,7 +172,7 @@ class Message:
@classmethod
def recv(cls, port):
(header, ) = st.unpack("6s", port.read(6))
header = port.read(6)
logger.debug("received header: %s", header)
data = b""
if header[4] & 0x80: