mirror of
https://github.com/intrepidcs/icsscand.git
synced 2026-08-05 01:28:26 +02:00
replace undefined NEODEVICE_ALL with specific device types
This commit is contained in:
+5
-4
@@ -343,9 +343,10 @@ static void probe_new_devices()
|
|||||||
{
|
{
|
||||||
NeoDevice *detected = (NeoDevice*)malloc(sizeof(NeoDevice) * max_num_ifaces);
|
NeoDevice *detected = (NeoDevice*)malloc(sizeof(NeoDevice) * max_num_ifaces);
|
||||||
int num_devices = max_num_ifaces, i;
|
int num_devices = max_num_ifaces, i;
|
||||||
|
const unsigned long device_types = NEODEVICE_VCAN41 | NEODEVICE_VCAN42 | NEODEVICE_VCAN3
|
||||||
|
| NEODEVICE_FIRE | NEODEVICE_ANY_ION | NEODEVICE_ANY_PLASMA | NEODEVICE_FIRE2;
|
||||||
/* find all the connected devices */
|
/* find all the connected devices */
|
||||||
int ret = icsneoFindNeoDevices(NEODEVICE_ALL & ~NEODEVICE_RADGALAXY, detected, &num_devices);
|
int ret = icsneoFindNeoDevices(device_types, detected, &num_devices);
|
||||||
if (ret == 0 || num_devices == 0)
|
if (ret == 0 || num_devices == 0)
|
||||||
{
|
{
|
||||||
free(detected);
|
free(detected);
|
||||||
@@ -392,8 +393,8 @@ static void probe_new_devices()
|
|||||||
/* figure out how many interfaces we need to make */
|
/* figure out how many interfaces we need to make */
|
||||||
switch(device->device.DeviceType)
|
switch(device->device.DeviceType)
|
||||||
{
|
{
|
||||||
case NEODEVICE_VCAN41:
|
case NEODEVICE_VCAN41:
|
||||||
case NEODEVICE_VCAN42:
|
case NEODEVICE_VCAN42:
|
||||||
case NEODEVICE_VCAN3:
|
case NEODEVICE_VCAN3:
|
||||||
num_nets = 2;
|
num_nets = 2;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user