1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Plugin interface: use enum for single Rx or single Tx type and added the any type

This commit is contained in:
f4exb
2019-05-07 18:58:20 +02:00
parent fcc8817f62
commit 7ea814c180
30 changed files with 39 additions and 32 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ int WebAPIAdapterGUI::instanceDevices(
*devices->back()->getHwType() = samplingDevice.hardwareId;
*devices->back()->getSerial() = samplingDevice.serial;
devices->back()->setSequence(samplingDevice.sequence);
devices->back()->setDirection(samplingDevice.rxElseTx ? 0 : 1);
devices->back()->setDirection((int) samplingDevice.streamType);
devices->back()->setDeviceNbStreams(samplingDevice.deviceNbItems);
devices->back()->setDeviceSetIndex(samplingDevice.claimed);
devices->back()->setIndex(i);