From 62cf26bed4bad76458c6abd595dd3b40e341596f Mon Sep 17 00:00:00 2001 From: Jaro Date: Sun, 5 Sep 2021 09:26:54 +0200 Subject: [PATCH] test 158 resume timer --- TimeoutSerial.cpp | 6 +++++- openwrt/Makefile | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/TimeoutSerial.cpp b/TimeoutSerial.cpp index 1bf3a11..eeb926e 100755 --- a/TimeoutSerial.cpp +++ b/TimeoutSerial.cpp @@ -255,7 +255,11 @@ void TimeoutSerial::readCompleted(const boost::system::error_code& error, return; } #else //Linux - if(error.value()==125 || error.value() == 158) return; //Linux outputs error 125 + if(error.value()==125) return; //Linux outputs error 125 + if (error.value()==158) { + performReadSetup(setupParameters); + return; + } #endif result=resultError; diff --git a/openwrt/Makefile b/openwrt/Makefile index 7e32416..38d7da4 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -7,8 +7,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usbserial-dw -PKG_VERSION:=0.2.3 -PKG_RELEASE:=9 +PKG_VERSION:=0.2.4 +PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://git.bh.ttx.sk/jaro/usbserial-dw.git