diff --git a/booster.py b/booster.py index a2243d8b..6449c68b 100644 --- a/booster.py +++ b/booster.py @@ -164,6 +164,8 @@ async def tune_bias(self, channel, current): async def set_bias(voltage): await self.settings_interface.command(f'channel/{channel}/bias_voltage', voltage, retain=False) + # Sleep 100 ms for bias current to settle and for ADC to take current measurement. + await asyncio.sleep(0.1) response = await self.perform_action(Action.ReadBiasCurrent, channel) response = json.loads(response['msg']) vgs, ids = response['vgs'], response['ids']