VS Arduino
Visual Micro >> Ideas, Suggestions and Related Tools >> pgm_read....broken in 1704.20.1
https://www.visualmicro.com/forums/YaBB.pl?num=1493211020

Message started by Lino on Apr 26th, 2017 at 12:50pm

Title: pgm_read....broken in 1704.20.1
Post by Lino on Apr 26th, 2017 at 12:50pm
the

Code (c++):
#define pgm_read_byte(address_short) void()
(and similar ones) in .vsarduino.h are wrong.
it should be

Code (c++):
#define pgm_read_byte(address_short) byte()
or you get

Quote:
E0513 a value of type "void" cannot be assigned to an entity of type "byte"
and

Quote:
E2138 expression must have arithmetic or unscoped enum type

Title: Re: pgm_read....broken in 1704.20.1
Post by Visual Micro on Apr 26th, 2017 at 12:57pm
Hi

That's an intellisense error, the build should be okay?

It's also important to say which board and board package or arduino ide version you are using when making reports.

Visual Micro can't affect the core c++ but can correct any intellisense issues in vsarduino.h. so we can look at that when we now what you are using.

Thanks

Title: Re: pgm_read....broken in 1704.20.1
Post by Visual Micro on Apr 29th, 2017 at 3:24pm
This should be resolved in the latest release

Thanks for the report.

Title: Re: pgm_read....broken in 1704.20.1
Post by Lino on May 2nd, 2017 at 8:46am

Tim@Visual Micro wrote on Apr 26th, 2017 at 12:57pm:

That's an intellisense error, the build should be okay?

Yes, it was an intellisense error.
Sorry for the late reply but I don't get a notification via email when someone replies to my posts.
Gotta search if there's an option somewhere here in the forum.
Anyway..I can confirm it has been fixed on my end with the 30.apr release.
thanks.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.