From 2c4f3e4c1f686f0b01aa569dcca3140a069a3b05 Mon Sep 17 00:00:00 2001 From: Ed Murphy Date: Wed, 6 Apr 2022 22:03:26 +0100 Subject: [PATCH] - fix web controller recording state so it is latched. (#1007) - fix for https://github.com/autorope/donkeycar/issues/996 - version="4.3.10" (on main only, here it is 4.3.6.3). (cherry picked from commit 6c9ecb9188efa3800291ecaf06bed8e78a1d711b) --- donkeycar/parts/web_controller/web.py | 5 +++-- setup.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/donkeycar/parts/web_controller/web.py b/donkeycar/parts/web_controller/web.py index 2de508f25..30cff6fcc 100644 --- a/donkeycar/parts/web_controller/web.py +++ b/donkeycar/parts/web_controller/web.py @@ -249,13 +249,14 @@ def open(self): def on_message(self, message): data = json.loads(message) - self.application.angle = data.get('angle', self.application.angle) self.application.throttle = data.get('throttle', self.application.throttle) if data.get('drive_mode') is not None: self.application.mode = data['drive_mode'] self.application.mode_latch = self.application.mode - self.application.recording = data.get('recording', self.application.recording) + if data.get('recording') is not None: + self.application.recording = data['recording'] + self.application.recording_latch = self.application.recording def on_close(self): # print("Client disconnected") diff --git a/setup.py b/setup.py index 43cbfaddb..4e7005653 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ def package_files(directory, strip_leading): long_description = fh.read() setup(name='donkeycar', - version="4.3.6.2", + version="4.3.6.3", long_description=long_description, description='Self driving library for python.', url='https://github.com/autorope/donkeycar',