From 8eaa7a79134ef04dee29937e2dad7db54210af05 Mon Sep 17 00:00:00 2001 From: Ezward Date: Tue, 5 Apr 2022 13:28:56 -0700 Subject: [PATCH] - fix web controller recording state so it is latched. - fix for https://github.com/autorope/donkeycar/issues/996 - version="4.3.10" --- 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 c1fa28385..9bcd67629 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.9", + version="4.3.10", long_description=long_description, description='Self driving library for python.', url='https://github.com/autorope/donkeycar',