Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .sub file RAW_data strip #1016

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

orensbruli
Copy link
Contributor

@orensbruli orensbruli commented Jan 8, 2023

For some reason, some of the files saved by Flipper Zero have a final white space.

When the RAW_data line is splitted, the last white space gets its own '' value in the array.
If we try to convert the '' value to int we get an exception.
The exception has been controlled, showing a warning and skipping the value.
The line is stripped to remove white spaces before splitting.

For some reason some of the files saved by flipper has a final space. When the RAW_data is splitted, the last space gets it's own '' value in the array. Whet we try to convert the '' value to int we get an exception.
The exception has been controlled, showing a warning and skipping the value.
The line is stripped to remove white spaces before of splitting
@CLAassistant
Copy link

CLAassistant commented Jan 8, 2023

CLA assistant check
All committers have signed the CLA.

@andynoack andynoack merged commit 1966978 into jopohl:master Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants