Skip to content

Commit 06df424

Browse files
authored
Implemented #138 (#139)
* Implemented #138 * Small spelling fix
1 parent f10e94d commit 06df424

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

totp/features_config.h

+11-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@
1414
#define TOTP_FIRMWARE_XTREME (3)
1515
// End of list
1616

17-
// Target firmware to build for.
17+
// Checking FlipC.org definitions (https://github.com/playmean/fap-list/issues/9)
18+
#if defined(TARGET_FIRMWARE_OFFICIAL)
19+
#define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_STABLE
20+
#elif defined(TARGET_FIRMWARE_UNLEASHED)
21+
#define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_DEV
22+
#elif defined(TARGET_FIRMWARE_XTREME)
23+
#define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME
24+
#endif
25+
// End of FlipC.org definition checks
26+
27+
// If target firmware is not yet set, default it to Xtreme as I'm using it, and it is cool :)
1828
#ifndef TOTP_TARGET_FIRMWARE
19-
// Defaulting to Xtreme if not previously defined
2029
#define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME
2130
#endif

0 commit comments

Comments
 (0)