1
0
forked from me/IronOS
Commit Graph

3062 Commits

Author SHA1 Message Date
Ivan Zorin
15ab87f3bc Update tagging for detached commit case & update docs (#1783)
make_translation.py: update tagging for detached commit case & update docs
2023-08-07 09:05:56 +10:00
Ivan Zorin
8b90666f30 metadata.py: update tagging considering github CI builds (#1782) 2023-08-07 09:05:04 +10:00
TheMoo96
c03e1842aa Swedish translation update to include new strings (#1779)
* update swedish translation

* Add linebreak char
2023-08-05 10:29:44 +00:00
Ben V. Brown
524d121fcb Merge branch 'master' into dev v2.22-rc 2023-08-04 22:45:10 +10:00
Ivan Zorin
97c0fee358 Implement proper git SHA ID marking for builds during pull-requests (#1772)
* debug github CI git meta info

* fix push.yml format

* fix push.yml for shell

* try to fix push.yml

* try to fix push.yml run

* try to fix push.yml run for multi

* keep debugging

* try to do as less changes as possible

* Implement proper git tagging for builds during pull-requests

* Unify new-line separators between build steps

* Keep debugging

* make_translation.py: fix formatting

* push.yml: try to set ENV values

* push.yml: fix copy-paste error

* Remove extra env var

* Experimenting

* Testing upper()

* Re-testing upper()

* Revert tested values

* make_translation.py: add new lines between blocks to improve readability

* Reformulate docs & comments

* make_translation.py: remove debugging print

* make_translation.py: simplify check for SHA ID env var / code review

* make_translation.py: fix condition

---------

Co-authored-by: Ben V. Brown <5425387+Ralim@users.noreply.github.com>
2023-08-04 21:54:29 +10:00
Ben V. Brown
17b39de903 Use 3 count filter for MHP30 acceleromter (#1762)
* Use 3 count filter for MHP30 acceleromter

Requires it to trip 3 times in a row to fire. So really only knocking the unit over trips it off.

* Reset shutdown timer forwards on shutdown timeout

Default shutdown mode off

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2023-08-04 21:38:41 +10:00
Ivan Zorin
3f880d9e26 Implement ci target for Makefile to reproduce github CI actions & artifacts (#1769)
* Implement CI target in Makefile to emulate github CI actions & artifacts

* Improve filter for metadata

* metadata.py: update usage output for wrong number of input arguments / code review

* metadata.py: remove excessive checks for the second input argument / code review

* metadata.py: remove hard-coded model for multi-lang builds in ModelName argument processing / code review

* metadata.py: remove hard-coded models for multi-lang builds in file name pattern processing / code review

* metadata.py: update usage output to remove ambiguity about json extension for output file

* metadata.py: unify new lines style formatting

* metadata.py: sort the list of processing files in alphanumeric order before looping through them to get the same lang order on every generation in every json output file
2023-08-04 21:32:17 +10:00
discip
4533c2f497 Merge pull request #1729 from alextrical/Short-Detection
Pinecil v2 short detection at boot
2023-08-04 13:31:07 +02:00
Ben V. Brown
c120af398a Merge branch 'dev' into Short-Detection 2023-08-02 15:52:49 +10:00
Ivan Zorin
2d7abc274a Remove exec bit from a translation json file (#1770)
Remove exec bit for json file
2023-08-02 09:03:34 +10:00
Ben V. Brown
80c4b58976 Abstract out showing bootlogo
To improve support on PinecilV2
2023-08-01 21:18:27 +10:00
Ben V. Brown
a7df1cc5be Fixup for logo addresses + Set DFU address for PinecilV2 2023-08-01 21:10:15 +10:00
Ben V. Brown
584b3826c3 Start docs on BLE (#1763)
* docs on BLE

* Tip shorted notes
2023-08-01 02:39:29 +02:00
discip
c4fd383694 Merge branch 'dev' into Short-Detection 2023-08-01 02:05:07 +02:00
discip
bd9c63f55d Merge pull request #1767 from eslng/uk-translation-1
Update translation_UK.json
2023-08-01 02:03:18 +02:00
discip
45f89f8f9c Merge branch 'dev' into Short-Detection 2023-08-01 02:03:17 +02:00
discip
f61376a404 Update translation_UK.json 2023-08-01 02:00:47 +02:00
yegor
703a32f68a Update translation_UK.json 2023-07-31 18:30:59 +03:00
Ivan Zorin
e0f373a88a Decomission of scripts/ci (#1760)
* Decomission of scripts/ci

* Code review

* Update .gitignore according to changes for code review
2023-07-31 10:06:57 +10:00
Ivan Zorin
05d0ef66ef push.yml: probable fix #1764 (#1765) 2023-07-29 11:18:50 +10:00
Ben V. Brown
6d18e860f8 Merge branch 'dev' into Short-Detection 2023-07-28 20:04:16 +10:00
Ben V. Brown
344068d480 Add isTipShorted() to warnings 2023-07-28 19:59:54 +10:00
Ben V. Brown
13e1c24152 Warn user tick type correction 2023-07-28 19:58:46 +10:00
Ben V. Brown
7254b78404 Add warning for Tip Shorted to translations 2023-07-28 19:58:27 +10:00
Ivan Zorin
55d36c98f1 Simplify commands for jobs in push.yml (#1761)
* Simplify commands for build steps

* Fixing multi-lang builds for Pinecil & PinecilV2

* Makefile: fix multi-thread building support

* source/Makefile: fix formatting

---------

Co-authored-by: Ben V. Brown <5425387+Ralim@users.noreply.github.com>
2023-07-28 09:45:22 +00:00
Ivan Zorin
65ac2e25a6 Add Core/Drivers to the scope of style check by clang-format (#1754)
* clang-format: add ./Core/Drivers (except usb-pd) to the scope of style check

* Fix missed suggestion

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
Co-authored-by: Ben V. Brown <5425387+Ralim@users.noreply.github.com>
2023-07-28 09:39:01 +00:00
Ben V. Brown
ea1906e499 Enforce temp unit to C if F not in build
Closes #1741
2023-07-28 18:46:00 +10:00
Ben V. Brown
9a3fef92c3 Allow S60 fallback to head if PD times out after 3 seconds 2023-07-28 18:40:16 +10:00
discip
118fa09ce7 Enhanced V calibration (#1758) 2023-07-24 18:23:04 +10:00
Ben V. Brown
6ba2a5c259 BLE crash fixing (Part ?) (#1756)
* Remap printf

* Help to unify formatting

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
Co-authored-by: Ivan Zorin <ivan.a.zorin@gmail.com>
2023-07-24 09:07:38 +10:00
discip
0f6c1b686e Merge branch 'dev' into Short-Detection 2023-07-24 00:06:50 +02:00
Ivan Zorin
f83ebc8c81 Implement target in Makefile to run github CI-like checks locally (#1753)
* Makefile: implement tests target with subtargets to run github CI-like tests locally (in docker container)

* Dockerfile: update comment for PIP packages
2023-07-23 22:18:45 +10:00
Ben V. Brown
65dd3e879c Fixup for temp in F bug 2023-07-21 21:16:11 +10:00
Ivan Zorin
52dd27cc07 Fix github CI clang-format related check_c-cpp job (#1752)
* Fix github CI clang-format related check_c-cpp job

* shellcheck fix
2023-07-21 14:47:16 +10:00
discip
8ac43645b7 Merge branch 'dev' into Short-Detection 2023-07-20 20:22:37 +02:00
Ivan Zorin
1c9d3940ca Move related pieces of documentation from wiki to Documentation/ (#1746)
* Move TS100 info from wiki to Hardware.md

* Move TS80 info from wiki to Hardware.md

* Move TS80P info from wiki to Hardware.md

* Move Pinecil info from wiki to Hardware.md

* Move some info from Home.md wiki to Documentation/index.md

* Fix path inside docker since Dockerfile has been updated to be in the root project tree after starting container

* Move info from Home.md wiki to Documentation/Hardware.md

* mkdocs.yml: swtich config to forked repo for testing formatting online

* Fix formatting

* Fix formatting (md != rtd)

* Fix formatting for index.md

* Revert mkdocs config to original one after testing

* Documentation/: add power sources info

* Documentation/README.md: update with power sources

* tiny fixes with formatting

* Reformat links to stores

* Fix footnote on _default_ charger for TS80P

* Revert mkdocs config

* Fix footnote about wattage for QC, try fix table in index.md
2023-07-20 11:55:08 +10:00
Ivan Zorin
297a4dffa5 Replace /build/source by /build/ironos to eliminate ambiguity with /build/source/source (#1748)
* docker/buildAll.sh: replace /build/source by /build/ironos to eliminate ambiguity with /build/source/source

* scripts/ci/buildAll.sh: fix shellcheck and add additional comment
2023-07-20 11:52:22 +10:00
Ivan Zorin
93a18e5076 Move check-style core logic from makefile to shell script (#1745)
* Move check-style core logic from source/Makefile:check-style target to deploy.sh:check_style_file function

* deploy.sh: fix shellcheck warning

* source/Makefile: restore removed-by-accident style target
2023-07-20 11:02:56 +10:00
discip
bfbdf8c941 Merge pull request #1747 from federicodilo/patch-8
Update translation_IT.json
2023-07-20 01:16:35 +02:00
Federico Di Lorenzo
b00d26cb9c Update translation_IT.json
Little fix
2023-07-19 23:56:56 +02:00
discip
78a4cfecfe Merge branch 'dev' into Short-Detection 2023-07-18 20:21:33 +02:00
Ivan Zorin
c7574c4d0c Implement printSymbolDeg() helper function as method for OLED class (#1743)
* implement printSymbolDeg() helper function as method for OLED class

* Remove extra line added by mistake

* OLED::printSymbolDeg - add drawSymbol calls

* OLED: make comments more clear for implemented method

* OLED::printSymbolDeg(): attempt to improve read-ability replacing if/else by switch/case

* OLED::printSymbolDeg() - add comment for drawSymbol to clarify its underhood

* get tipTemp using ?/: instead of if/else

* Implement getTipTemp() helper

* Add missing header

---------

Co-authored-by: Ben V. Brown <5425387+Ralim@users.noreply.github.com>
2023-07-18 20:38:14 +10:00
Ivan Zorin
1d820acbee Documentation/index.md: add Feedback section (Ralim#1552) as suggested (#1744) 2023-07-18 14:35:16 +10:00
Ivan Zorin
d95af7d1a0 clang-format implementation (#1740)
* Testing clang-format style check using github CI

* github/push: implement check-style for clang-format as a separate build step

* github/push: add missing packages for check-style/clang-format build step

* source/Makefile: check-style - reduce files of interest; update .clang-format to keep enums init

* source/Makefile: empty lines, spaces & tabs refactoring to unify style - part 1 out of N

* source/Makefile: fix formatting for multi-line variables

* source/Makefile: update formatting for multi-line variables

* source/Makefile: remove spaces on vars assignments to unify style

* source/Makefile: remove unused target style

* source/Makefile: implement exclude vars for clang-format related files

* source/Makefile: exclude configuration.h from clang-format check

* Dockerfile: add diffutils in a container to make check-style target using advanced version of diff to get more advanced output to parse & navigate log more easily

* source/Makefile: implement parser for clang-format inside check-style target to make output compatible with gcc-like error compilation format for compatibility with IDEs/editors for easy navigation over files to fix style errors

* source/Makefile: probably final touches on unifying style

* source/Makefile: implement check-style-list target to only list affected file names with wrong code style for debug purposes

* source/Makefile: fix missed spaces

* deploy.sh: add helper routine to deal with clang-format error output logging from makefile

* gitignore: add clang-format log explicitly

* Refactoring for clang-format compiance

* Dockerfile: add sed

* Dockerfile: false alarm - remove sed since busybox-sed seems fine

* source/Makefile: reduce calls of clang-format & make error log more clean, clear, and tidy

* deploy.sh:check_style() - add removal of DOS EOLs for generated log

* source/Makefile:check-style: add more empty lines between blocks with errors for readability when suggestion is too long & heavy

* source/Makefile: add STOP var to check-style for exit on first failed file

* source/Makefile: check-style: make log looks more like traditional diff/patch output

* source/Core/BSP/Pinecilv2/MemMang/heap_5.c: clang-format refactoring using reasonable advises ... and then disable it in Makefile from scanning by clang-format

* Return headers include order

* clang-format config: disable warnings about non-alphabetic include order

* clang-format refactoring

* clang-format refactoring, part 2

* clang-format refactoring, part 3

* settingsGUI.cpp: refactoring, part 1

* settingsGUI.cpp: refactoring, part 2

* settingsGUI.cpp: refactoring, part 3

* settingsGUI.cpp: refactoring, part 4

* clang-format should be happy now

* workflows/push: put readme check into separate build step & update style

* clang-format: giving SortIncludes option second chance by tweaking a couple of headers a bit

* source/Makefile: check-style: add homebrew parser to check for { } in conditional blocks

* homebrew-format: add { } for if/else, while, and for & unify some comments style; left two errors intentionally to debug & improve parser

* source/Makefile: homebrew-format: fix false negative trigger for multi-line condition in if-s

* Sleep.cpp: unify style & comments

* source/Makefile: remove unused debug target
2023-07-16 15:25:30 +10:00
Ivan Zorin
ca79638a74 Translations/: add missing exec bit for python scripts (#1742) 2023-07-15 23:49:22 +10:00
Ivan Zorin
4649df6914 Implement autogeneration of Documentation/README.md (#1738)
* mkdocs.yml: unify formatting style

* Docs/README.md: add auto-generated README.md file for Documentation/ directory

* Docs/README.md: fix refs

* Docs/README.md: fix locations

* Docs/README.md: trying workaround spaces in filenames for refs

* Documentation/README.md: update generated file trying to fix all formatting issues

* Documentation/README.md: reduce title size

* Documentation/README.md: add link for official online docs

* scripts/deploy.sh: implement docs_readme function

* deploy.sh: add overwrite warning in help output

* deploy.sh: try to fix shellcheck warnings

* deploy.sh:docs_readme() - show note message only if README should be updated

* deploy.sh:docs_readme() - fix shellcheck

* github/push: add Documentation/README.md check

* github/push: force usage of /bin/sh for deploy.sh script

* testing, testing, testing

* deploy.sh:docs_readme() - make error-related message more clear about what to donext

* Revert change used only to test failure on github CI
2023-07-11 09:36:05 +10:00
Ivan Zorin
cd7696b66f Suggestion to update BUILD_VERSION policy (#1733)
* version.h: update BUILD_VERSION policy / PoC

* Fix misplaced chars

* make_translation.py: implement get_version_suffix() function to extend BUILD_VERSION build type legend data

* version.h: update version policy info according to implementation of get_version_suffix() function in make_translation.py

* Version policy update: add double-check for release tag so if version doesn't match use another letter T

* make_translation.py: fix extra tabulation

* version.h: tiny tidy update for version format

* Documentation/DebugMenu.md: update info on version line & date

* Documentation/DebugMenu.md: fix formatting & mistypes

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2023-07-10 09:58:24 +10:00
Ben V. Brown
552b582bcb Fixup! broken #1672 reflow profile 2023-07-09 22:29:48 +10:00
Ivan Zorin
311dbeac6f Fix echo in top-level Makefile for some environments (#1737)
* Makefile: fix echo for some environments by replacing escape chars with explicit formatting by spaces and new lines

* Dockerfile: extend comments for documentation purpose & switch WORKDIR to IronOS source tree root dir for the seamless workflow
2023-07-09 22:01:44 +10:00
discip
6ff7bec4a4 Merge branch 'dev' into Short-Detection 2023-07-07 22:22:07 +02:00