diff options
| author | Reinhold Gschweicher <pyro4hell@gmail.com> | 2024-09-22 11:28:04 +0200 |
|---|---|---|
| committer | FintasticMan <finlay.neon.kid@gmail.com> | 2024-09-22 16:15:48 +0200 |
| commit | 997e4cee8cc78a6e0b68cc78b604dc342f22b584 (patch) | |
| tree | dba4d69ddfc085c28a701bfd6089c9dbe60bdb04 /src/drivers/Hrs3300.cpp | |
| parent | ad3bf49c7b2864d8f06cedea8ad329e26360f297 (diff) | |
Hrs3300: fix includes for std::begin/std::end
Fix for Hrs3300 PR about Atomic HRS reads:
https://github.com/InfiniTimeOrg/InfiniTime/pull/1845
We use `std::begin` and `std::end`, but we don't include one of the
headers that define those functions.
See https://en.cppreference.com/w/cpp/iterator/begin for a list of
headers that define `std::begin` and `std::end`.
Starting with GCC 14 this leads to a compilation error presumably
because they cleaned up their headers.
Fix code by inlcuding `<iterator>`
Diffstat (limited to 'src/drivers/Hrs3300.cpp')
| -rw-r--r-- | src/drivers/Hrs3300.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Hrs3300.cpp b/src/drivers/Hrs3300.cpp index 9c77975e..a4b72479 100644 --- a/src/drivers/Hrs3300.cpp +++ b/src/drivers/Hrs3300.cpp @@ -6,6 +6,7 @@ #include "drivers/Hrs3300.h" #include <algorithm> +#include <iterator> #include <nrf_gpio.h> #include <FreeRTOS.h> |
