SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By fwdbias
#193053
Previous version of Arduino (1.5 I believe) worked fine with my Leonardo. Version 1.8 fails with my sketch that worked with the older version. I cleaned up the platform.txt and boards.txt files, as I am currently working on getting a 3.3V Pro Micro going, but errors persist.

/Users/Subdir/Documents/project/arduino01/Arduino.app/Contents/Java/hardware/arduino/avr/
cores/arduino/USBCore.cpp: In function 'int USB_RecvControl(void*, int)':

/Users/.../USBCore.cpp:439:7: error: 'length' does not name a type
auto length = len;
^
/Users/.../USBCore.cpp::440:8: error: 'length' was not declared in this scope
while(length)
^
/Users/.../USBCore.cpp::444:8: error: 'recvLength' does not name a type
auto recvLength = length;
^
/Users/.../USBCore.cpp::445:6: error: 'recvLength' was not declared in this scope
if(recvLength > 64){
^
/Users/.../USBCore.cpp::451:31: error: 'recvLength' was not declared in this scope
Recv((u8*)d + len - length, recvLength);

I'll continue to research this, but if anyone can help, I'd be might 'perciated. OSX 10.7.5