fixed crash when no dev detected 2

This commit is contained in:
Ryzerth 2020-07-20 17:33:06 +02:00
parent 3216daec2b
commit e8ae20232a

View File

@ -221,7 +221,7 @@ void drawWindow() {
sigPath.setVolume(volume);
}
if (devId != _devId) {
if (devId != _devId && soapy.devList.size() > 0) {
_devId = devId;
soapy.setDevice(soapy.devList[devId]);
srId = 0;