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

Change spiffs to spiffsb to enable compile on Windows with VSCode and PlatformIO #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tlindi
Copy link

@tlindi tlindi commented Mar 15, 2023

I came to conclution that Windows doesn't see difference between
#include "spiffs.h" and
#include "SPIFFS.h"

Therefore I propose to rename spiffs.h to spiffsb.h (b stands to Bleskomat).

As I'm noob I could not figure out how to keep -D FIRMWARE_COMMIT_HASH working. Therefore rude workaround in .ini
[firmware]
build_flags =
'-D FIRMWARE_NAME="Bleskomat DIY"'
'-D FIRMWARE_VERSION="v1.3.0"'
'-D FIRMWARE_COMMIT_HASH="win"'
; !echo "'-D FIRMWARE_COMMIT_HASH="$(git rev-parse HEAD)"'"

Would there be some way to have if clause in .ini depending of build platform to run "git" correctly on both linux and Windows with same .ini?

I was also streamlined #include clauses """ and "<" with same amount CRLF's on each.

Pleased to hear back.

Bear with me - this is my 1st c(pp) code change/creation proposal since 2001.

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.

1 participant