austinbv/dino — pull request #52 by cdcarter (2013-07-14 19:58:05+00:00)
Title: failing attempt to bring SoftwareSerial to dino

I'm trying to bring SoftwareSerial support to Dino (to eventually support the AdaFruit Thermal printer). I have a pretty good handle on what is going on on the ruby side of the code, and I think I have structured this addition in the proper way. However, it won't compile, for what I imagine is just a basic C++ issue I don't understand. I'm including the code, but the error occurs when trying to reassign the serial object to a new one once setPins is called.

DinoSerial.cpp.o:(.bss.serial+0x0): multiple definition of `serial'
dino_serial.cpp.o:(.bss.serial+0x0): first defined here
/Users/cdcarter/Downloads/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld: Warning: size of symbol `serial' changed from 34 in dino_serial.cpp.o to 28 in DinoSerial.cpp.o

I realize a pull request isn't the best way to get this on someones radar, but I'd love to try and figure out how to get basic SoftwareSerial support into the Arduino half of the equation, and I'm happy to hack away on the ruby side to get communication flowing both ways and a printer connected!

Email or Twitter for conversation!