فهرست منبع

Merge pull request #3 from Lucretiel/master

Specify seven data bits in the serial interface.

pyserial defaults to 8, but the Alpha protocol calls for 7.
Matt Sparks 14 سال پیش
والد
کامیت
64c622b482
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      alphasign/interfaces/local.py

+ 1 - 0
alphasign/interfaces/local.py

@@ -28,6 +28,7 @@ class Serial(base.BaseInterface):
                                baudrate=4800,
                                parity=serial.PARITY_EVEN,
                                stopbits=serial.STOPBITS_TWO,
+                               bytesize=serial.SEVENBITS,
                                timeout=1,
                                xonxoff=0,
                                rtscts=0)