Open 0xPIT opened 9 years ago
I can confirm that this patch works on OS X Yosemite.
Not working on ElCapitan, the changes are already there, I hope I am compiling it correctly by use of make. But dunno if these two problems are related:
gcc -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm -std=c99 -Os -Wall -D_POSIX_C_SOURCE=199309L -DLINUX -c serialport/serialport.c -o build/serialport/serialport.o serialport/serialport.c:242:31: error: use of undeclared identifier 'B57600' cfsetispeed(&term,B57600); ^ serialport/serialport.c:243:31: error: use of undeclared identifier 'B57600' cfsetospeed(&term,B57600); ^ serialport/serialport.c:247:31: error: use of undeclared identifier 'B115200' cfsetispeed(&term,B115200); ^ serialport/serialport.c:248:31: error: use of undeclared identifier 'B115200' cfsetospeed(&term,B115200); ^ serialport/serialport.c:252:31: error: use of undeclared identifier 'B230400' cfsetispeed(&term,B230400); ^ serialport/serialport.c:253:31: error: use of undeclared identifier 'B230400' cfsetospeed(&term,B230400); ^ 6 errors generated. make: *\ [build/serialport/serialport.o] Error 1
@0xPIT Sorry I didn't reply to this back in the December. I want to avoid this becoming the place where patches are introduced. I'd hoped CK would have an official repository set up at some point...
@DJManas Looks like they don't define the non-standard baudrate macros. There may be a macro you have to define (I'd be surprised if they don't exist at all).
Thanks, I have solved it in different manner. I have setup the Arduino IDE for ESP8266 and it works. Thank you for quick reply.
With this patch, it will compile on Mac OS 10.10: