diff --git a/cpdctrl/measurement.py b/cpdctrl/measurement.py index 00a5d66..c528145 100644 --- a/cpdctrl/measurement.py +++ b/cpdctrl/measurement.py @@ -141,6 +141,10 @@ def measure( elif type(recv) == tuple and recv[0] == "led_script": log.info(f"Received 'led_script', replacing script") led_script = recv[1] + elif type(recv) == tuple and recv[0] == "metadata": + log.info(f"Received 'metadata', updating metadata") + data.metadata |= recv[1] + data.write_metadata() else: log.error(f"Received invalid message: '{recv}'")