AllStarLink / app_rpt

Refactoring and upgrade of AllStarLink's app_rpt, etc.
5 stars 4 forks source link

Device string was not found #229

Closed tsawyer closed 10 months ago

tsawyer commented 11 months ago

When a USB sound device is not attached the following error message repeats continuously. When bring up a new node simpleUSB is the default channel driver for node 1999. It's not uncommon for a new install to not have a sound device connected or even in the owner's possession. Would it be possible to report the error only once?

[2023-09-17 07:37:48.220] ERROR[787]: chan_simpleusb.c:920 hidthread: Channel usb_1999: Device string  was not found
[2023-09-17 07:37:49.177] ERROR[787]: chan_simpleusb.c:920 hidthread: Channel usb_1999: Device string  was not found
[2023-09-17 07:37:50.132] ERROR[787]: chan_simpleusb.c:920 hidthread: Channel usb_1999: Device string  was not found
[2023-09-17 07:37:51.088] ERROR[787]: chan_simpleusb.c:920 hidthread: Channel usb_1999: Device string  was not found
[2023-09-17 07:37:52.000] ERROR[787]: chan_simpleusb.c:920 hidthread: Channel usb_1999: Device string  was not found
[2023-09-17 07:37:52.956] ERROR[787]: chan_simpleusb.c:920 hidthread: Channel usb_1999: Device string  was not found
KB4MDD commented 11 months ago

This is related to the changes for #219. I will add some code to reduce the frequency of the error message. Previously there were no error messages.

tsawyer commented 10 months ago

@KB4MDD Fix works very nicely. Elegant even. Thank you.