automation: Fix for using nrfconnect debugger without serial
If you set your debugger serial to "" or null in settings_v2_agent_specific.json
to pick any debugger for nRFconnectSDK based targets you would get an exception.
@@ -97,6 +97,8 @@ def flash(ctx, debugger_serial="", output_name=DEFAULT_OUTPUT_NAME,
)
def log(ctx, mcu="NRF5340_XXAA_APP", debugger_serial=None):
"""Open a log terminal"""
+ if debugger_serial == "":
+ debugger_serial = None
with URttReader(mcu, jlink_serial=debugger_serial) as rtt_reader:
while True:
data = rtt_reader.read()
