fix: resolve stale waveform duplicates and throttle bypass for real-time streaming
This commit is contained in:
@@ -362,6 +362,8 @@ def _parse_286_byte_packet(data: bytes, vitals_dict: dict) -> bool:
|
||||
vitals_dict["present_fields"] = []
|
||||
if "spo2" not in vitals_dict["present_fields"]:
|
||||
vitals_dict["present_fields"].append("spo2")
|
||||
if "pleth_wave" not in vitals_dict["present_fields"]:
|
||||
vitals_dict["present_fields"].append("pleth_wave")
|
||||
vitals_dict.setdefault("spo2", None)
|
||||
|
||||
found = False
|
||||
@@ -407,6 +409,8 @@ def _parse_288_byte_packet(data: bytes, vitals_dict: dict) -> bool:
|
||||
vitals_dict["present_fields"] = []
|
||||
if "spo2" not in vitals_dict["present_fields"]:
|
||||
vitals_dict["present_fields"].append("spo2")
|
||||
if "pleth_wave" not in vitals_dict["present_fields"]:
|
||||
vitals_dict["present_fields"].append("pleth_wave")
|
||||
vitals_dict.setdefault("spo2", None)
|
||||
|
||||
found = False
|
||||
@@ -477,6 +481,8 @@ def _parse_989_byte_packet(data: bytes, vitals_dict: dict) -> bool:
|
||||
vitals_dict["present_fields"] = []
|
||||
if "heart_rate" not in vitals_dict["present_fields"]:
|
||||
vitals_dict["present_fields"].append("heart_rate")
|
||||
if "ecg_wave" not in vitals_dict["present_fields"]:
|
||||
vitals_dict["present_fields"].append("ecg_wave")
|
||||
vitals_dict.setdefault("heart_rate", None)
|
||||
|
||||
found = False
|
||||
|
||||
Reference in New Issue
Block a user