Add Survival Manual app#1088
Open
Radiomanrf wants to merge 1 commit into
Open
Conversation
xMasterX
requested changes
Jun 30, 2026
xMasterX
left a comment
Collaborator
There was a problem hiding this comment.
Hello, sadly, this app doesn't even compile
/survival_manual.c:27: error: "COUNT_OF" redefined [-Werror]
27 | #define COUNT_OF(x) (sizeof(x) / sizeof((x)[0]))
|
In file included from furi/core/common_defines.h:3,
from furi/furi.h:5,
from /survival_manual.c:14:
furi/core/core_defines.h:55: note: this is the location of the previous definition
55 | #define COUNT_OF(x) (sizeof(x) / sizeof(x[0]))
|
/survival_manual.c: In function 'open_section':
/survival_manual.c:89:73: error: 'FSOM_OPENING' undeclared (first use in this function)
89 | if(storage_file_open(f, furi_string_get_cstr(app->path), FSAM_READ, FSOM_OPENING)) {
| ^~~~~~~~~~~~
/survival_manual.c:89:73: note: each undeclared identifier is reported only once for each function it appears in
/survival_manual.c: In function 'open_page':
/survival_manual.c:121:73: error: 'FSOM_OPENING' undeclared (first use in this function)
121 | if(storage_file_open(f, furi_string_get_cstr(app->path), FSAM_READ, FSOM_OPENING)) {
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
For example FSOM_OPENING is some nonsense
There are 3 possible types of FILE OPEN command and this one is none of them
define COUNT_OF is present within the firmware, and should not be used, you need to use different define name for your specific defines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Application Submission
Survival Manual — an offline survival reference reader. It contains 37 chapters
(421 sections) from the libre Survival Manual, which is derived from the public-domain
US Army field manual FM 21-76. Navigation is Pages → Sections → scrollable text. The
chapter text ships as SD-card assets and each section is loaded on demand by byte
offset, so RAM use stays low regardless of chapter size. This is the initial release (v1.0).
Extra Requirements
None. No additional hardware or software required — the app reads its bundled text
assets from the SD card.
Author Checklist (Fill this out)
python3 tools/bundle.py --nolint applications/Tools/survival_manual/manifest.yml bundle.zipAI usage disclosure (Fill this out):
AI was used to convert the upstream Survival Manual wiki text into Flipper-readable
asset files. The manual content is the public-domain US Army FM 21-76, via the GPLv3
ligi/SurvivalManual project.
Reviewer Checklist (Don't fill this out!)