reverse led strip with defines, github action for peters bobbycar

This commit is contained in:
Peter Poetzi
2021-09-30 14:35:46 +02:00
parent 4f9d422d50
commit 069382632e
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [feedc0de, comred]
node: [feedc0de, comred, peter]
steps:
- name: Checkout (without submodules)
uses: actions/checkout@v2

View File

@ -39,8 +39,10 @@ void updateLedStrip()
const auto center = (std::begin(leds) + (leds.size() / 2) + settings.ledstrip.centerOffset);
#ifdef LEDSTRIP_WRONG_DIRECTION
if(cpputils::is_in(blinkAnimation, 1, 2)){
blinkAnimation = 3 - blinkAnimation;
if(blinkAnimation == LEDSTRIP_ANIMATION_BLINKLEFT){
blinkAnimation = LEDSTRIP_ANIMATION_BLINKRIGHT;
} else if(blinkAnimation == LEDSTRIP_ANIMATION_BLINKRIGHT){
blinkAnimation = LEDSTRIP_ANIMATION_BLINKLEFT;
}
#endif