implement better handling if auto init is not working

This commit is contained in:
2025-03-18 13:45:35 +01:00
parent c98c1ea2ec
commit b45d6364c9
+5
View File
@@ -26,6 +26,11 @@ async def initialize(conf: auracast_config.AuracastConfigGroup):
log.info('Using: %s', device)
conf.transport = f'serial:{device},115200,rtscts'
break
# check again if transport is still auto
if conf.transport == 'auto':
HTTPException(status_code=500, detail='No suitable transport found.')
# initialize the streams dict
global_config_group = conf
log.info(