Skip to content

Commit

Permalink
Implemented #138 (#139)
Browse files Browse the repository at this point in the history
* Implemented #138

* Small spelling fix
  • Loading branch information
akopachov authored Apr 18, 2023
1 parent 9df6fc5 commit 168c6e9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions features_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@
#define TOTP_FIRMWARE_XTREME (3)
// End of list

// Target firmware to build for.
// Checking FlipC.org definitions (https://github.com/playmean/fap-list/issues/9)
#if defined(TARGET_FIRMWARE_OFFICIAL)
#define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_STABLE
#elif defined(TARGET_FIRMWARE_UNLEASHED)
#define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_DEV
#elif defined(TARGET_FIRMWARE_XTREME)
#define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME
#endif
// End of FlipC.org definition checks

// If target firmware is not yet set, default it to Xtreme as I'm using it, and it is cool :)
#ifndef TOTP_TARGET_FIRMWARE
// Defaulting to Xtreme if not previously defined
#define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME
#endif

0 comments on commit 168c6e9

Please sign in to comment.