Skip to content

Commit

Permalink
Support WakeLock.h for doNotGoToSleep Refactor
Browse files Browse the repository at this point in the history
For InfiniTime PR InfiniTimeOrg/InfiniTime#2107
a new systemtask file is introduced `WakeLock.h` and `WakeLock.cpp`.

If available add those files to the build target to support the current
`main` and the new `WakeLock` using redesign.
  • Loading branch information
NeroBurner committed Sep 21, 2024
1 parent 7ade442 commit f5d56c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,13 @@ else()
)
endif()

if(EXISTS ${InfiniTime_DIR}/src/systemtask/WakeLock.h)
target_sources(infinisim PUBLIC
${InfiniTime_DIR}/src/systemtask/WakeLock.h
${InfiniTime_DIR}/src/systemtask/WakeLock.cpp
)
endif()

# littlefs
add_library(littlefs STATIC
${InfiniTime_DIR}/src/libs/littlefs/lfs_util.h
Expand Down

0 comments on commit f5d56c6

Please sign in to comment.