ElektorLabs / Arduino

Elektor's Arduino compatible boards, including Elektor Uno R4 with ATmega328PB
21 stars 10 forks source link

Visual Micro *.vsarduino.h define breaks intellisense #1

Open firmware32 opened 8 years ago

firmware32 commented 8 years ago

"architecture": "avr-pb" causes a invalid macro error in Visual Studio when using visual micro. I was able to get the error to go away by changing it to "avr_pb" then pulling from my repository fixed the issue.

So visual micro generates a *.vsarduino.h file one of the defines pulls from the config

bad macro ( doesn't like the "-")

define ARDUINO_ARCH_AVR-PB

//works fine

define ARDUINO_ARCH_AVR_PB

BTW Thanks this is awesome!!!

elektor-labs commented 8 years ago

Thanks a lot for this feedback. Modifying the JSON file alone was not enough. The hyphen has been removed everywhere and I hope the problem is now solved. Please delete your old installation and try again with the updated version.

firmware32 commented 8 years ago

I reinstalled, works great. thanks for making this accommodation. Us intellisense junkies appreciate it :)