implement better handling if auto init is not working
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user