Comments (6)
Some of the issues are just in test code, so will not affect a real application.
from ubxlib.
Very useful indeed, thanks Michael, give me time to absorb and I will comment here, tagging issue #209 so that warasilapm
sees this.
from ubxlib.
Here is some more:
-
Line 751 in 3cf5348
likely a bad idea, just remove?: (pInstance->startTimeMs > 0) &&
either you need an extra bool flag to indicate that startTimeMs was never set.
all the startTimeMs = 0 in this file are very supicious ... values <0 are valid values that uPortGetTickTimeMs can return -
ubxlib/common/location/test/u_location_test.c
Line 332 in 3cf5348
probably better to init with uPortGetTickTimeMs or maybe this = 0 is not needed at all, but seting 0 here is not better than having a random value.
same here...
ubxlib/wifi/test/u_wifi_loc_test.c
Line 295 in 3cf5348
-
ubxlib/common/short_range/src/u_short_range.c
Line 240 in 3cf5348
looks suspicious but not sure ... -
ubxlib/wifi/test/u_wifi_captive_portal_test.c
Line 131 in 3cf5348
again supicious probably need a separate flag to track if gStartTimeMs was ever set. -
reconsider if this is needed: ticksLastRestart
it does not really do something maybe just there for debugging and can be removed:
ubxlib/common/short_range/src/u_short_range.c
Line 188 in 3cf5348
ubxlib/common/short_range/src/u_short_range.c
Line 259 in 3cf5348
from ubxlib.
Yeah I've been noticing this repeatedly as well - though we've not been reviewing the test code applications. Zephyr does something similar as suggested by wrapping all "times" in an "opaque" (but not really) struct that is supposed to be passed into macros/static inlines to handle the encapsulated values. You can see the encapsulation in k_timeout_t
here. I imagine you'd end up with a uTick_t
struct similar to this.
Note Zephyr does some things differently as it generally leverages int64_t
to avoid any wraparound issues. We've found a couple more edge cases to share on the other issue later today after we do some more investigation.
from ubxlib.
Implementation in #225.
from ubxlib.
The fix for this issue, as proposed (and reviewed) by @mazgch, can be found in commit 79e808e.
from ubxlib.
Related Issues (20)
- Refresh radio parameters delay HOT 4
- ESP-IDF OTA update with cellular network interface HOT 6
- uGnssPosGet sometimes fails with U_ERROR_COMMON_NOT_INITIALISED HOT 18
- Using ubxlib to interface two ublox peripherals HOT 3
- strncpy faills to compile in ESP-IDF HOT 5
- Ublox MAX-M10: Getting errror -5 for uGnssInfoGetVersions and -2 for uGnssPosGet HOT 2
- Unable to bring up GNSS! HOT 21
- USECMNG invalid certificate/key format HOT 18
- esp32c6 i2c m10 HOT 7
- uCellInfoGetTimeUtc - AT+CCLK sometimes returns invalid date HOT 3
- esp idf i2c legacy driver issue HOT 4
- rewrite certificates after reboot HOT 2
- best way to combine device-tree interfaces with uDeviceCfg_t in zephyr HOT 3
- example to use token of location thing HOT 6
- Unable to start continuous location! HOT 11
- Compiling & building HOT 1
- Unable to create HTTP instance! HOT 10
- Build for STM32 CUBE HOT 2
- ESP32 Demo HOT 3
- Power consumption after calling uGnssPwrOff HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ubxlib.