diff --git a/donkeycar/parts/pico.py b/donkeycar/parts/pico.py index 76d17234a..6f4bd80f2 100644 --- a/donkeycar/parts/pico.py +++ b/donkeycar/parts/pico.py @@ -107,6 +107,9 @@ def run_threaded(self, *inputs): """ Donkey parts interface """ + # allow receiving no data and just returning the current state + if not inputs: + return self.receive_dict.values() assert len(inputs) == self.num_inputs, \ f"Expected {self.num_inputs} inputs but received {len(inputs)}" for k in self.send_dict.keys():