fix the representation of at_the_end_of_time #145
No reviewers
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk!145
Loading…
Reference in a new issue
No description provided.
Delete branch "at-the-end-of-time"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
at_the_end_of_time was erroneously ULONG_MAX which is only 32 bits; changed to INT64_MAX which is sufficiently far in the future, but allows for signed 64 bit arithmetic.
@ -36,4 +47,4 @@/*! fn update_us_since_boot* \brief update an absolute_time_t value to represent a given number of microseconds since boot* \param t the absolute time value to updateAre the param and return descriptions the wrong way around? 🤷
fixes #132
Looking at
types.h, I wonder if it's also worth doing a small bit of refactoring in order to reduce the duplicated doxygen comments? (also, seemsassert.hwas missing)if you can figure out how to make doxygen work off one set of comments then great :-) - i'm not convinced it does the right things for these anyway - not much to refactor as they are different definitions of the same thing
oh let me look sorry, i didn't realize you had a patch
good idea
While I'm not the original reporter of #132, I've had a similar problem with the pico crashing after 1.19 hours. I've tested this PR today and can confirm it works (well other than the missing
assert.hheader that @lurch pointed out) and fixes the problem I was having withgetchar()