diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c795b05 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 852c02c..216b363 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "pico-keys-sdk"] path = pico-keys-sdk - url = https://github.com/polhenarejos/pico-keys-sdk + url = git@github.com:fbuirey/pico-keys-sdk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 1cc83a2..497a4f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,6 +131,12 @@ target_compile_options(pico_fido PUBLIC -Werror ) + +if(CUST_BUTTON_PIN) + target_compile_definitions(pico_fido PUBLIC CUST_BUTTON_PIN=${CUST_BUTTON_PIN}) +endif() +message(STATUS "CUST_BUTTON_PIN is set to: ${CUST_BUTTON_PIN}") + string(FIND ${CMAKE_C_COMPILER} ":" COMPILER_COLON) if (${COMPILER_COLON} GREATER_EQUAL 0) target_compile_options(pico_fido PUBLIC diff --git a/pico-keys-sdk b/pico-keys-sdk index 05fe059..92c2f0b 160000 --- a/pico-keys-sdk +++ b/pico-keys-sdk @@ -1 +1 @@ -Subproject commit 05fe0596ef004313e166b1e2f900e9af351dd26c +Subproject commit 92c2f0b4a5b46a1ae926cd2ba17878cb3f9fe702