USBCore errors

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

You shouldn’t be editing the platform.txt and board.txt files manually. The newer versions have a boards manager to do that for you. I would wipe your install and start from scratch. Then install the boards you need from the boards manager.

https://learn.sparkfun.com/tutorials/in … rd-manager

https://learn.adafruit.com/add-boards-a … 4?view=all