File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2727 - uses : actions/checkout@v2
2828
29+ # for CI builds. edit version.h to contain the branch name
30+ - name : write version.h
31+ run : |
32+ export BRANCH_OR_TAG=${GITHUB_REF#refs/*/}
33+ echo BRANCH_OR_TAG
34+ echo "#define VERSION \"${BRANCH_OR_TAG}\"" > version.h
35+ cat version.h
36+
2937 # Runs a single command using the runners shell
3038 - name : Setup Arduino Build
3139 run : ci/setup.sh
Original file line number Diff line number Diff line change 1212#include < TinyGPSPlus.h>
1313
1414// define this when targeting a Adafruit Feather board, instead of a Del Sol Clock. Useful for testing BLE.
15- #define DEVKIT_ONLY 1
15+ // #define DISABLE_SLEEP 1
1616namespace
1717{
1818 bool FwUpdateInProgress = false ;
@@ -67,7 +67,7 @@ void setup()
6767
6868void HandlePowerState ( const CarIO::CarStatus& car_status )
6969{
70- #ifdef DEVKIT_ONLY
70+ #ifdef DISABLE_SLEEP
7171 return ;
7272#endif
7373 // if IGN and Illumination are off, go to sleep.
You can’t perform that action at this time.
0 commit comments