]> git.earman.xyz Git - sensor-watch.git/commitdiff
Merge pull request #107 from mkende/safe_totp
authorvoloved <36523934+voloved@users.noreply.github.com>
Wed, 1 Apr 2026 20:42:04 +0000 (16:42 -0400)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2026 20:42:04 +0000 (16:42 -0400)
Allow to pass secrets to totp_face through a separate (ignored) header.

1  2 
watch-faces/complication/totp_face.c
watch-faces/complication/totp_face.h

index fdec056519cc7afb5d0c8897f1d4adb938b95d54,d8ec461ba8dfd3f7a21d19bcf980562b27533080..f405da8e78868a1446d06aadc46c4b50aa6fba25
@@@ -63,10 -64,14 +63,14 @@@ typedef struct 
  ////////////////////////////////////////////////////////////////////////////////
  // Enter your TOTP key data below
  
+ #if __has_include("totp_face.secrets.h")
+ #include "totp_face.secrets.h"
+ #else
  static totp_t credentials[] = {
      CREDENTIAL(2F, "JBSWY3DPEHPK3PXP", SHA1, 30),
 -    CREDENTIAL(AC, "JBSWY3DPEHPK3PXP", SHA1, 30),
 +    CREDENTIAL(AAC, "JBSWY3DPEHPK3PXP", SHA1, 30),
  };
+ #endif
  
  // END OF KEY DATA.
  ////////////////////////////////////////////////////////////////////////////////
Simple merge