From 66ef2124d351d69d87b3f0ca1bd4d52a22aae006 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 17 Jun 2019 16:24:25 +0100 Subject: [PATCH] works with wiringPi, should solve license issues --- pyserialext/writec.c | 5 ----- snippets/test5.py | 6 ------ 2 files changed, 11 deletions(-) diff --git a/pyserialext/writec.c b/pyserialext/writec.c index d51cf7c..768a0fa 100644 --- a/pyserialext/writec.c +++ b/pyserialext/writec.c @@ -1,10 +1,5 @@ #include -#include #include -#include -#include -#include -#include #include #include diff --git a/snippets/test5.py b/snippets/test5.py index 365aa35..7520336 100644 --- a/snippets/test5.py +++ b/snippets/test5.py @@ -1,12 +1,6 @@ from pymodbus.client.sync import ModbusSerialClient -import serial.rs485 import RS485Ext -#ser=serial.rs485.RS485(port='/dev/ttyAMA0',baudrate=1200) -#ser.rs485_mode = serial.rs485.RS485Settings(rts_level_for_tx=False, -# rts_level_for_rx=True, -# delay_before_tx=0.005, -# delay_before_rx=-0.0) ser=RS485Ext.RS485Ext(port='/dev/ttyAMA0', baudrate=1200) client = ModbusSerialClient(method='rtu')