Hello,
I try to create a sensor based on a Raspberry Pi 5 in C++.
When I use the compiled program, tNMEA2000::Open always returns false.
If I stay in debug mode in my EDI no trouble.
After investigations, i can see that OpenScheduler.IsTime() return false if the current time is the same as NextTime
return N2kMillis64()>NextTime;
If I change this line with >= all is fine
bool IsTime() const {
#if defined(N2kUse64bitSchedulerTime)
return N2kMillis64()>=NextTime;
#else
return !IsDisabled() && ( N2kMillis()-NextTime<INT32_MAX );
#endif
}
Hello,
I try to create a sensor based on a Raspberry Pi 5 in C++.
When I use the compiled program, tNMEA2000::Open always returns false.
If I stay in debug mode in my EDI no trouble.
After investigations, i can see that OpenScheduler.IsTime() return false if the current time is the same as NextTime
return N2kMillis64()>NextTime;If I change this line with >= all is fine