Skip to content

Commit

Permalink
Use Pico SDK v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
reinder committed Sep 16, 2024
1 parent ca0dda9 commit 2087c01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ project(traintastic-cs C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)

if (PICO_SDK_VERSION_STRING VERSION_LESS "1.3.0")
message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.3.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}")
if (PICO_SDK_VERSION_STRING VERSION_LESS "2.0.0")
message(FATAL_ERROR "Raspberry Pi Pico SDK version 2.0.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}")
endif()

# Initialize the SDK
Expand Down
2 changes: 1 addition & 1 deletion src/utils/time.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <pico/types.h>

#ifndef NDEBUG
#if PICO_OPAQUE_ABSOLUTE_TIME_T
inline bool operator>=(const absolute_time_t lhs, const absolute_time_t rhs)
{
return to_us_since_boot(lhs) >= to_us_since_boot(rhs);
Expand Down

0 comments on commit 2087c01

Please sign in to comment.