FOSDEM / video-amixcontrol

0 stars 0 forks source link

CLI: Not persisting repl device path #1

Closed aastefanov closed 11 hours ago

aastefanov commented 11 hours ago

Running the CLI with the device parameter does not work: mixercli --device /dev/ttyS0

pesho$ mixercli -d /dev/ttyS0
--------------------------------------------------------------------------------
FOSDEM Audio Control @pesho
Connected to device /dev/ttyS0
--------------------------------------------------------------------------------
mixer@pesho>
mixer@pesho> ?
Cannot connect to device: [Errno 2] could not open port /dev/tty_fosdem_audio_ctl: [Errno 2] No such file or directory: '/dev/tty_fosdem_audio_ctl'

We need to keep the parameter between repl-ed command executions, as it currently recreates an OSCController with the default device name.

aastefanov commented 11 hours ago

However, this works correctly:

mixercli -d /dev/ttyS0 matrix