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

Firmware 1.0 #21

Merged
merged 373 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
373 commits
Select commit Hold shift + click to select a range
8c3122a
ci: Stop ci-tag from running on branch for testing purposes
redmushie Sep 30, 2023
3cf05a7
Merge branch 'feature/captive-portal-ci' of github.com:Open-Shock/Fir…
redmushie Sep 30, 2023
72d6d0d
ci: Add dynamic determining of job strategy matrix based on platformi…
redmushie Sep 30, 2023
627ca67
ci: Fix typo in job action
redmushie Sep 30, 2023
1c3a41c
ci: Remove trailing single quote
redmushie Sep 30, 2023
8edd02f
ci: Have jq output in compact mode
redmushie Sep 30, 2023
8aec931
ci: Fix referencing wrong job ID
redmushie Sep 30, 2023
915623f
ci: Add platformio 'fs' target for filesystem only, and filter it out…
redmushie Sep 30, 2023
b8d6ae4
ci: Tidy up internal artifact file naming
redmushie Sep 30, 2023
f208f9f
Merge pull request #10 from Open-Shock/feature/captive-portal-ci
hhvrc Sep 30, 2023
394655b
Correctly use Wemos D1 Mini instead of AZ Deliverykit
hhvrc Sep 30, 2023
4563872
ci: Fix environment naming of wemos-d1-mini32
redmushie Sep 30, 2023
69c4cdb
ci: Update ci-tag to upload every artifact
redmushie Sep 30, 2023
ed1997d
ci: Fix not parsing JSON in publish-artifacts strategy matrix
redmushie Sep 30, 2023
138492b
ci: Uppercase pio env names
redmushie Sep 30, 2023
6d11328
ci: Fix typo and remove unnecessary default board specification
redmushie Sep 30, 2023
5d20f51
Merge pull request #7 from Open-Shock/feature/complete-firmware-rewrite
hhvrc Sep 30, 2023
d931834
Merge pull request #8 from Open-Shock/feature/multi-board-ci
redmushie Sep 30, 2023
7ef255b
ci: Fix filesystem build failing
redmushie Sep 30, 2023
b1ed6c8
Update npm packages
hhvrc Sep 30, 2023
f51ed40
Rename to OpenShock
hhvrc Sep 30, 2023
da357b1
Implement server message parsing
hhvrc Sep 30, 2023
56a5342
Add <limits> include to fix compilation issues
hhvrc Oct 1, 2023
eb6b64c
ci: Enable debugging
redmushie Oct 1, 2023
7f3555a
chore: Update board flash instructions in RELEASE.md
redmushie Oct 1, 2023
8bc08a5
ci: Add rough structure for extended per-board configuration
redmushie Oct 1, 2023
e817dfb
fix: Use correct variable name in platformio.ini
redmushie Oct 1, 2023
a823579
build: Make platformio envs reference override boards
redmushie Oct 1, 2023
f7c2a82
ci: Try to stop duplicate CIs triggering while debugging
redmushie Oct 1, 2023
5d46248
ci: Add install boards step
redmushie Oct 1, 2023
2278dc6
ci: Undo commenting out pull-request matchers in ci-build
redmushie Oct 1, 2023
2a0b1a5
ci: Properly comment out pull_request matcher
redmushie Oct 1, 2023
4ec52dd
ci: Try alternative method of installing board definitions
redmushie Oct 1, 2023
039e673
ci: Try to fix multi-board install method
redmushie Oct 1, 2023
12a7e12
build: Add per-board merge scripts
redmushie Oct 1, 2023
752395c
ci: Add per-board build script invocation
redmushie Oct 1, 2023
54c7f1b
ci: Attempt to fix build-firmware step path resolution problem
redmushie Oct 1, 2023
0530b1d
ci: Try again to fix pathing issue
redmushie Oct 1, 2023
7714df0
ci: Fix Wemos-D1-Mini-ESP32 merge-image script
redmushie Oct 1, 2023
d187653
ci: Try yyyyet again to fix pathing issue
redmushie Oct 1, 2023
2c584be
ci: Try a fourth time
redmushie Oct 1, 2023
9027e66
ci: Add two-step cp, mv
redmushie Oct 1, 2023
ef5bf02
ci: Better document board definition installation step
redmushie Oct 1, 2023
38b768b
ci: Checkout boards/ folder and not requirements.txt when merging images
redmushie Oct 1, 2023
db98a60
ci: Add flash_size parameter to merge-images step
redmushie Oct 1, 2023
50e5eee
build: Fix board.json beig swapped between D1 Mini and S3
redmushie Oct 1, 2023
475d8e6
docs: Fix flash instructions in RELEASE.md
redmushie Oct 1, 2023
a18e11d
ci: Add install_boards.py, update CI to use it and update README
redmushie Oct 1, 2023
7772e78
build: Add per-board build flags
redmushie Oct 1, 2023
91dce84
build: Add Wemos Lolin S2 and Pishock 2023 boards
redmushie Oct 1, 2023
959ec95
build: Add Lolin S2 Mini board.json
redmushie Oct 1, 2023
14f5402
ci: Fix missing board.json not causing install_boards.py to crash
redmushie Oct 1, 2023
fa55118
ci: Add merge_images.py script to find correct image merger to use
redmushie Oct 1, 2023
368faf7
ci: Fix merge_image.py not checking for merge-image.py script existin…
redmushie Oct 1, 2023
ebff165
ci: Add Lolin S2 partitions and LED config
redmushie Oct 1, 2023
6a303eb
chore: Remove unused parameters.json file and make printouts of merge…
redmushie Oct 1, 2023
c974a31
build: Add Pishock Lite 2021
redmushie Oct 1, 2023
7723fd4
Merge pull request #12 from OpenShock/feature/multi-board-ci
redmushie Oct 1, 2023
5e3abb1
Implement gzip compression
hhvrc Oct 1, 2023
95536ea
Merge branch 'develop' into feature/use-gzip-compression
hhvrc Oct 1, 2023
41605b6
ci: Remove debugging
redmushie Oct 1, 2023
9cb81c5
Minor cleanup
hhvrc Oct 1, 2023
a37b18a
Merge branch 'develop' of github.com:Open-Shock/Firmware into feature…
redmushie Oct 1, 2023
b363294
Merge pull request #14 from OpenShock/feature/use-gzip-compression
redmushie Oct 1, 2023
405dc82
feat: Add usage of board-specific variables for status LED and TX pin
redmushie Oct 1, 2023
d366044
feat: Disable LED and radio if pins are not configured at build time
redmushie Oct 1, 2023
752b84c
feat: Add logging for when LED or radio are disabled
redmushie Oct 1, 2023
2052cb3
fix: Typo in #if clause
redmushie Oct 1, 2023
ce371ad
feat: Upgrade LED/radio logging warning to WARN level
redmushie Oct 1, 2023
0172bef
Merge pull request #15 from OpenShock/feature/use-macro-vars
redmushie Oct 1, 2023
69ae7ab
ci: Test readding debug level
redmushie Oct 1, 2023
d136b3d
Merge branch 'develop' of github.com:OpenShock/Firmware into develop
redmushie Oct 1, 2023
abbb165
Fix startup sequence
hhvrc Oct 1, 2023
fdaebfb
build: Add release/develop detection and specific parameters
redmushie Oct 1, 2023
42a5146
Merge branch 'develop' of github.com:OpenShock/Firmware into develop
redmushie Oct 1, 2023
0c31285
Start implementing dotenv vars
hhvrc Oct 2, 2023
9a46bfc
Implement new scan message
hhvrc Oct 2, 2023
125454f
Move non-user scripts into scripts directory
hhvrc Oct 2, 2023
c3613d0
Better formatting options
hhvrc Oct 2, 2023
3f3c38d
Merge branch 'develop' into feature/dotenv-vars
hhvrc Oct 2, 2023
3b0065f
More formatting
hhvrc Oct 2, 2023
fd98574
Minor fixes
hhvrc Oct 2, 2023
0e40bde
Fix LED configuation
hhvrc Oct 2, 2023
937775f
Merge branch 'develop' into feature/dotenv-vars
hhvrc Oct 2, 2023
60debe3
Merge branch 'develop' into feature/fix-captive-portal
hhvrc Oct 2, 2023
6633fe8
Implement better LED selection system
hhvrc Oct 2, 2023
7138d3d
Merge branch 'develop' into feature/dotenv-vars
hhvrc Oct 2, 2023
2e99ea7
More verbosity in VisualStateManager
hhvrc Oct 2, 2023
e17d601
build: Fix builtype variable name and non-release profile name
redmushie Oct 2, 2023
544f285
Resolve code review
hhvrc Oct 2, 2023
170759e
Add recommended extensions
hhvrc Oct 2, 2023
594150a
Merge branch 'develop' into feature/dotenv-vars
hhvrc Oct 2, 2023
6c4f834
Merge branch 'develop' into feature/fix-captive-portal
hhvrc Oct 2, 2023
99f77ec
build: Separate scripts
redmushie Oct 2, 2023
2fd37bc
Merge branch 'feature/dotenv-vars' of github.com:OpenShock/Firmware i…
redmushie Oct 2, 2023
bc23191
fix: Correct automatic Python refactor
redmushie Oct 2, 2023
6b54444
build: Remove empty file envutil.py
redmushie Oct 2, 2023
3995b5d
build: Fix importing adjacent Python files while inside module
redmushie Oct 2, 2023
0e374e8
build: Add debug statement
redmushie Oct 2, 2023
d8ed744
build: Add better attempt at debug logging
redmushie Oct 2, 2023
774c314
build: Fix pioenv init crashing
redmushie Oct 2, 2023
0e0937a
fix: Change accidental global variable access to instance variable ac…
redmushie Oct 2, 2023
dd58469
build: Fix typo in env variable name
redmushie Oct 2, 2023
2e54011
build: Add scripts folder to checkout when merging images
redmushie Oct 2, 2023
aec5d7a
build: Clean up updating build params by adding functions
redmushie Oct 2, 2023
27b1dd3
fix: Actually call serialize_cpp_defines
redmushie Oct 2, 2023
6d966c9
Merge pull request #16 from OpenShock/feature/dotenv-vars
redmushie Oct 2, 2023
36ff78e
Merge branch 'develop' into feature/fix-captive-portal
hhvrc Oct 2, 2023
b56111a
Fix prettier formatting
hhvrc Oct 2, 2023
fd6777c
Merge branch 'develop' into feature/implement-flatbuffers
hhvrc Oct 2, 2023
836d439
Merge branch 'develop' into feature/fix-captive-portal
hhvrc Oct 2, 2023
af13f97
Bugfix: Set Github env fallbacks for detecting non-ci environment
hhvrc Oct 2, 2023
97872f7
Merge branch 'develop' into feature/fix-captive-portal
hhvrc Oct 2, 2023
6c42797
Implement WiFi selection and connection logic and communication
hhvrc Oct 3, 2023
7e6dbe2
Refactor and improve scanning logic
hhvrc Oct 3, 2023
2a79a25
Formatting and hexing
hhvrc Oct 3, 2023
2879a91
feat: Add improved welcome header and help/version commands
redmushie Oct 3, 2023
d2f55d6
fix: Remove FW_COMMIT and FW_BOARD params in .env, add FW_COMMIT to .…
redmushie Oct 3, 2023
0e625ba
build: Swap sysenv/dotenv priority, add docs to dotenv files, clean u…
redmushie Oct 3, 2023
1621a30
Bugfixes >:c
hhvrc Oct 3, 2023
3abda59
Fixed network scan times, buggy UI, and WS disconnects
hhvrc Oct 3, 2023
38ca5ab
Literally F
hhvrc Oct 3, 2023
01c3e84
Fix WiFiDetails lookup
hhvrc Oct 3, 2023
234d1be
Add WiFi name for hidden networks
hhvrc Oct 3, 2023
c91d92e
Minot cleanup
hhvrc Oct 4, 2023
5ed9afb
Poggies handshake
hhvrc Oct 4, 2023
c128be0
WiFi connection works
hhvrc Oct 4, 2023
fb8c685
ci: Bump artifact retention to 7 days
redmushie Oct 4, 2023
6174693
Fix password length
hhvrc Oct 4, 2023
fe5e991
Add docs to Hex utils
hhvrc Oct 4, 2023
29081bb
Fix max length of credentials array
hhvrc Oct 4, 2023
c930949
set proper max length for credentials on read
hhvrc Oct 4, 2023
5fafdd6
Explain reading bssid
hhvrc Oct 4, 2023
5acef10
Implement scan finished messages
hhvrc Oct 4, 2023
1dcc8b5
authmode -> authMode
hhvrc Oct 4, 2023
311f2be
more issue fixes
hhvrc Oct 5, 2023
d5078d9
Implement Single Responsibility Principle
hhvrc Oct 5, 2023
9d792dd
Merge pull request #17 from OpenShock/feature/fix-captive-portal
hhvrc Oct 5, 2023
0b02fd4
Merge branch 'develop' into feature/implement-flatbuffers
hhvrc Oct 5, 2023
294ffec
Merge branch 'develop' into feature/serial-configuring
hhvrc Oct 5, 2023
77f1498
Update WebUI dependencies
hhvrc Oct 5, 2023
59440cf
ci: Add specific semver-only trigger and add support for release cand…
redmushie Oct 5, 2023
62d6cc2
Add global CA Certificates
hhvrc Oct 6, 2023
48a4b7c
This wasn't worth staying up all night for...
hhvrc Oct 6, 2023
d94355b
Fix CI specific build issue
hhvrc Oct 6, 2023
ca96c59
Linux is annoyingly sensitive to casing
hhvrc Oct 6, 2023
31ed932
INI go baibai
hhvrc Oct 6, 2023
c601e07
Merge branch 'develop' into feature/implement-flatbuffers
hhvrc Oct 6, 2023
9e7fdcd
Fix build issues
hhvrc Oct 6, 2023
4d425c9
Merge pull request #24 from OpenShock/feature/implement-flatbuffers
hhvrc Oct 6, 2023
7cbff28
ci: Remove PRs into master from triggering CI as it's redundant with …
redmushie Oct 6, 2023
547b7f1
Merge branch 'develop' of github.com:OpenShock/Firmware into develop
redmushie Oct 6, 2023
57769b2
Merge pull request #22 from OpenShock/feature/ci-release-candidates
redmushie Oct 6, 2023
c2cfaad
ci: Fix missing "prerelease:" attribute in ci-tag "Upload release not…
redmushie Oct 6, 2023
e29cb73
ci: Add "done" job so we can make it a merge condition
redmushie Oct 6, 2023
c47c70e
Add Flabuffers extension
hhvrc Oct 6, 2023
711f846
Merge branch 'develop' of github.com:OpenShock/Firmware into feature/…
redmushie Oct 7, 2023
a756d83
build: Add debugging for env vars
redmushie Oct 7, 2023
ff9325b
fix: Remove non-existent SerialInputHandler::Init call
redmushie Oct 7, 2023
26426ec
build: Add sysenv OPENSHOCK_ prefixed vars explicitly
redmushie Oct 7, 2023
087e780
build: Move select board.json files to boards/ directory
redmushie Oct 7, 2023
36401a1
build: Fix board references for Pishock-2023 and Wemos-D1-Mini-ESP32
redmushie Oct 7, 2023
1b733aa
build: Also move Lolin S2 board file to match other boards
redmushie Oct 7, 2023
6035b88
chore: Fix formatting
redmushie Oct 7, 2023
06bc29c
fix: Optimize Serial print statements
redmushie Oct 7, 2023
0630aaf
Merge pull request #18 from OpenShock/feature/serial-configuring
redmushie Oct 7, 2023
5f23a6d
build: Add Seeed Xiao ESP32-S3
redmushie Oct 8, 2023
e7caaa0
build: Rename the Xiao ESP32S3 board env to use dashes instead of und…
redmushie Oct 8, 2023
2c26bbd
build: Separate partitions since they are per-chip and not per-board
redmushie Oct 8, 2023
fa7efb3
build: Make merge_image.py use chips
redmushie Oct 8, 2023
e3b32d3
build: Rework board/SoC distinction
redmushie Oct 8, 2023
caa7176
build: Put script in method so it can return
redmushie Oct 8, 2023
5988ae1
fix(build): Correct openshock properties name
redmushie Oct 8, 2023
56e7543
build: Rework merge_image.py to use same logic as use_openshock_param…
redmushie Oct 8, 2023
f0095ec
ci: Add "chips" to project checkout in merge-images job
redmushie Oct 8, 2023
68f0ee8
build: Consolidate common functionality between use_openshock_params.…
redmushie Oct 8, 2023
c97ae9d
build: Fix misplacement of one line of code
redmushie Oct 8, 2023
467c1e5
build: Reduce littlefs offset slightly for ESP32-S3/N8R8
redmushie Oct 8, 2023
2060b1e
build: Move around blank log lines for cleaner output
redmushie Oct 8, 2023
cb52ba1
fix(build): Try to fix partition table for ESP32-S3 N8R8
redmushie Oct 8, 2023
a1a9095
fix(build): Fix ESP32-S3 N8R8 partition sizes
redmushie Oct 8, 2023
d8ed7d5
Merge pull request #33 from OpenShock/feature/board-xiao-esp32s3
redmushie Oct 8, 2023
8b7d696
chore: Delete now-unused install_boards.py and corresponding docs
redmushie Oct 8, 2023
7c3647f
Add proper flatbuffers support
hhvrc Oct 8, 2023
97bc574
Flatbuffers config go BRRRR
hhvrc Oct 8, 2023
92a62bc
Preserve index.html and already gzipped files in final build step
hhvrc Oct 8, 2023
2c8f14b
Fix handling when OPENSHOCK_TX_PIN is not defined
hhvrc Oct 8, 2023
1b95685
Fix loading config
hhvrc Oct 8, 2023
bb75296
Auto connect to first saved network
hhvrc Oct 8, 2023
5c40d0a
Require commands list
LucHeart Oct 8, 2023
548774d
Merge branch 'develop' into update-flatbuffer-files
LucHeart Oct 8, 2023
3e6f349
Merge pull request #37 from OpenShock/update-flatbuffer-files
LucHeart Oct 8, 2023
52627c4
Fix frontend paircode handling
hhvrc Oct 8, 2023
b3bbe69
Implement LiveControlGateway connection
hhvrc Oct 8, 2023
2b9dc4c
Fix some config stuff
hhvrc Oct 9, 2023
6afb4ca
LiveControlGateway connections now working
hhvrc Oct 9, 2023
87edae8
Clean up some logs
hhvrc Oct 9, 2023
dc82890
This is useless
hhvrc Oct 9, 2023
707aad3
More cleanup
hhvrc Oct 9, 2023
47c39df
Implement WiFi reconnection logic
hhvrc Oct 9, 2023
d76a304
Fix websocket header seperator
hhvrc Oct 9, 2023
faf5c5e
Fix keepalive serialization and timing
hhvrc Oct 9, 2023
060b31d
Start connecting to websocket immediately
hhvrc Oct 9, 2023
7e8249a
Add dash to headers
hhvrc Oct 9, 2023
c6e4ba7
Implement support for flatbuffer Gateway commands
hhvrc Oct 9, 2023
88ad124
Add useful comment
hhvrc Oct 9, 2023
1dcafd6
Remove log spam
hhvrc Oct 9, 2023
a8bc703
Fix memory access violation
hhvrc Oct 9, 2023
6e3c744
Temporary fix for wifi reconnection spam
hhvrc Oct 9, 2023
6ae4fc4
Fix invalid firmware version format
hhvrc Oct 9, 2023
bc46b86
Actually initialize the VisualStateManager
hhvrc Oct 9, 2023
0c20b9c
Change Firmware Version from commit hash to semver
hhvrc Oct 9, 2023
07adcb4
Display connected networks in captive portal
hhvrc Oct 9, 2023
fa1de07
Add BSSID formatting macros
hhvrc Oct 9, 2023
d99bbc8
Fix toggling of captiveportal alwaysEnabled
hhvrc Oct 9, 2023
e95deaf
Resolve WARNING comments
hhvrc Oct 9, 2023
e8e75cf
Adjust flatbuffer verifier options
hhvrc Oct 9, 2023
2ed1298
Improve serial commands
hhvrc Oct 9, 2023
e72d997
ci: Try to pass along FW_VERSION env var
redmushie Oct 9, 2023
ab4df28
ci: Mark fw_version input var as type string
redmushie Oct 9, 2023
6e03d47
ci: Remove unnecessary env vars from ci-tag.yml
redmushie Oct 9, 2023
884d27e
ci: Make local env vars clearer, handle PR naming to stay SemVer comp…
redmushie Oct 9, 2023
20fb89f
ci: Use format instead of unsupported string concatenation
redmushie Oct 9, 2023
d5871a1
ci: Attempt to fix PR branch detection
redmushie Oct 9, 2023
26b74e5
ci: Only allow master/develop branch, otherwise set version as 0.0.0-…
redmushie Oct 9, 2023
ce9d621
fix(ci): Remove trailing closing parenthesis
redmushie Oct 9, 2023
ccf7a81
fix(ci): Any semver string containing a dash is prerelease, not just …
redmushie Oct 9, 2023
b0403a0
ci: Add dotenv fallback values and remove cross-workflow value passing
redmushie Oct 9, 2023
f5f61a3
ci: Improve cache key naming, move targets.yml => get-targets.yml
redmushie Oct 9, 2023
8033b38
ci: Attempt to fix ci-tag artifact resolution
redmushie Oct 9, 2023
e77acda
ci: Remove workflow_conclusion matcher in ci-tag
redmushie Oct 9, 2023
67f54b5
fix(ci): Remove current branch trigger
redmushie Oct 9, 2023
fdda6f1
Fix sefault on network auth
hhvrc Oct 9, 2023
659283a
Merge branch 'develop' into bugfix/firmware-version
redmushie Oct 10, 2023
c152898
Merge pull request #41 from redmushie/bugfix/firmware-version
hhvrc Oct 13, 2023
b4cfc06
Remove duplicate definitions in generated files
hhvrc Oct 13, 2023
6c7cb63
Define some flatbuffer schemas
hhvrc Oct 13, 2023
a5f6cea
Json communication go baibai
hhvrc Oct 13, 2023
a97c3a7
Update dependencies
hhvrc Oct 13, 2023
da7bee7
Fix build issues
hhvrc Oct 13, 2023
7691343
Woo Yeah Baby! That's What I've Been Waiting For!
hhvrc Oct 14, 2023
4269ea0
Json go baibai
hhvrc Oct 14, 2023
253676b
We do a bit of refactoring
hhvrc Oct 15, 2023
d2e94a9
More refactoring / cleanup
hhvrc Oct 15, 2023
1944e6e
Set variable and not static instance
hhvrc Oct 15, 2023
78f59a9
More cleanup and bugfixes
hhvrc Oct 15, 2023
e8e7b15
CI build is dumb
hhvrc Oct 15, 2023
042e100
Account for padding in XLC encoder
hhvrc Oct 16, 2023
4af06a2
Fix schema gen ouput path for c++
hhvrc Oct 16, 2023
8c54968
Get network configuration working
hhvrc Oct 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
222 changes: 222 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
---
# Default style for all languages
IndentWidth: 2
---
Language: Cpp
Standard: c++20
DisableFormat: false

TabWidth: 2
UseTab: Never
IndentWidth: 2
ColumnLimit: 256
ShortNamespaceLines: 2
AccessModifierOffset: -2
ContinuationIndentWidth: 2
ConstructorInitializerIndentWidth: 2
BracedInitializerIndentWidth: 2
CommentPragmas: '^ IWYU pragma:'
LineEnding: LF

IncludeBlocks: Preserve
SortIncludes: CaseInsensitive
# IncludeCategories:
# - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
# Priority: 2
# SortPriority: 2
# CaseSensitive: true
# - Regex: '^((<|")(gtest|gmock|isl|json)/)'
# Priority: 3
# - Regex: "<[[:alnum:].]+>"
# Priority: 4
# - Regex: ".*"
# Priority: 1
# SortPriority: 0
# IncludeIsMainRegex: "([-_](test|unittest))?$"
# IncludeIsMainSourceRegex: ""

AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Right
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: true
AlignConsecutiveBitFields:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: true
PadOperators: true
AlignConsecutiveDeclarations:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: true
PadOperators: true
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: true
PadOperators: true
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator
AlignTrailingComments:
Kind: Always
OverEmptyLines: 1
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BitFieldColonSpacing: Both
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: false
AfterControlStatement: MultiLine
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: true
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakAfterAttributes: Never
BreakBeforeBinaryOperators: All
BreakBeforeConceptDeclarations: Allowed
BreakBeforeInlineASMColon: Always
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
BreakStringLiterals: true
CompactNamespaces: false
Cpp11BracedListStyle: true
DerivePointerAlignment: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: true
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentExternBlock: NoIndent
IndentGotoLabels: false
IndentPPDirectives: None
IndentRequiresClause: true
IndentWrappedFunctionNames: true
InsertNewlineAtEOF: true
InsertTrailingCommas: Wrapped
IntegerLiteralSeparator:
Binary: 4
BinaryMinDigits: 9
Decimal: 3
DecimalMinDigits: 5
Hex: 2
HexMinDigits: 9
KeepEmptyLinesAtEOF: false
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: OuterScope
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
PPIndentWidth: -1
PackConstructorInitializers: NextLine

PointerAlignment: Left
ReferenceAlignment: Left

RawStringFormats:
- Language: Cpp
Delimiters:
- 'cc'
- 'cpp'
BasedOnStyle: google
CanonicalDelimiter: 'cc'
ReflowComments: true
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Leave
SortUsingDeclarations: LexicographicNumeric
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: false
AfterIfMacros: false
AfterOverloadedOperator: false
AfterRequiresInClause: false
AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: true
SpacesBeforeTrailingComments: 2
SpacesInAngles: Never
SpacesInContainerLiterals: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParens: Custom
SpacesInParensOptions:
InConditionalStatements: false
InCStyleCasts: false
InEmptyParentheses: false
Other: false
SpacesInSquareBrackets: false
VerilogBreakBetweenInstancePorts: true

# JSON stuff
BreakArrays: false
SpaceBeforeJsonColon: false

# Macro stuff, don't need to touch this (yet?)
# MacroBlockBegin: ""
# MacroBlockEnd: ""
# Macros: []
# IfMacros: []
# ForEachMacros: []
# TypenameMacros: []
# AttributeMacros: []
# NamespaceMacros: []
# StatementMacros: [] # Could be useful for Qt (Q_OBJECT, Q_PROPERTY, Q_UNUSED, etc.)
# StatementAttributeLikeMacros: [] # Could be useful for Qt (emit, slots, signals, etc.)
# WhitespaceSensitiveMacros: []

# Penalty stuff, not sure how to use this yet
# PenaltyBreakAssignment: 0
# PenaltyBreakBeforeFirstCallParameter: 0
# PenaltyBreakComment: 0
# PenaltyBreakFirstLessLess: 0
# PenaltyBreakOpenParenthesis: 0
# PenaltyBreakString: 0
# PenaltyVreakTemplateDeclaration: 0
# PenaltyExcessCharacter: 0
# PenaltyIndentedWhitespace: 0
# PenaltyReturnTypeOnItsOwnLine: 0
---

15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Editor config

[*]

# Indentation
indent_style = space
indent_size = 2

# Line endings
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.py]
indent_size = 4
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
OPENSHOCK_API_DOMAIN=api.shocklink.net
OPENSHOCK_FW_VERSION=0.8.1
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LOG_LEVEL=VERBOSE
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LOG_LEVEL=INFO
Loading