Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15514

What changed from R2?

$
0
0

I had been working with the Uno Wifi R2, but I wanted to have an on-board DAC so I just got a R4. And the sketch I've been working on no longer compiles.

Specifically, when I include the ArduinoModbus library I get a cascade of errors, the first one is:
sys\time.h:263:17: error: field 'it_interval' has incomplete type 'timeval' struct timeval it_interval; /* timer interval */

I created a trivial test sketch the replicates the problem, it compiles fine if the board is set for R2 but not R4:

#include <ArduinoModbus.h>

void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
So clearly the problem is with the ArduinoModbus library, which doesn't seem to be being maintained. So I'm going to see if I can figure out what needs to be fixed.

The library is a port of a general purpose library, it's riddled with #ifdef statements for Linux, Windows and Arduino -- and it seems the Arduino ones were added last. So I'd guess the problem is something is no longer #defined.

The fact that the error is getting thrown in sys/time.h doesn't give me much to go on. So where I'd like to start is by figuring out what the #define's are under R2 vs R4, then seeing if I can find places in the code that would be affected by such a change.

Thanks.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 15514

Trending Articles