ofSerial "buildDeviceList()" Linux i386/amd64

Good morning guys,

I have a question about ofSerial.

I noticed that when I call the methods:

listDevices();
or
getDeviceList();

(These two functions use the internal method buildDeviceList())

I understand that (under Linux), what happens
opendir is simply a folder of /dev/

when cycling on readdir() takes control of some extensions previously saved in a vector called “prefixMatch”

This seems exclude most extensions under the folder /dev/
I think that’s the offending piece:

#ifdef TARGET_LINUX

  #ifdef TARGET_RASPBERRY_PI
  	prefixMatch.push_back("ttyACM");
  #endif
  prefixMatch.push_back("ttyS");
  prefixMatch.push_back("ttyUSB");
  prefixMatch.push_back("rfc");

#endif

under jessie with openFrameworks 0.9.0 RC2 will not let me see “ttyAMC”
unless it is active “TARGET_RASPBERRY_PI”

the TARGET_RASPBERRY_PI is questioned only
when you try to compile it on ARM architecture. (I think).

My question is:
how can I do to be able to see the other devices on Linux i386 / amd64?

I’m forced to change ofSerial?
or I have to do my opendir the /dev/ in my main program?

Thanks for your attention good day at all.
Dario

this sounds like a bug, ttyACM is the default in linux no matter the platform so that line should be out of tthe raspberry ifdef

I solved by writing my scandir in my main program.
in this case I have to mark this topic as SOLVED?

Ciao
Dario

you can also just remove that ifdef, i’ve just fixed it in master so if you remove it it’ll be the same in 0.9.1

OK thanks!

Good Day
Dario