Skip to content

Commit 269983e

Browse files
committed
CI should now generate version.h
1 parent 31a4d95 commit 269983e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
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

DelSolClock.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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
1616
namespace
1717
{
1818
bool FwUpdateInProgress = false;
@@ -67,7 +67,7 @@ void setup()
6767

6868
void 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.

0 commit comments

Comments
 (0)