Skip to content

Commit

Permalink
fix(tempdeck): correct model check to handle version 3 (#110)
Browse files Browse the repository at this point in the history
This model_version check would be incorrect for version 3, and it would
act as if it was a v1 or 2 tempdeck
  • Loading branch information
sfoster1 authored Feb 13, 2020
1 parent f3eb0be commit 58abc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/temp-deck/temp-deck-arduino/temp-deck-arduino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ void setup() {
// LED pins for model versions 3 (post 2018.10.15) & 4: red = 6, blue = 5
// LED pins for model versions < 3 & 3.0 (pre- 2018.10.15) : red = 5, blue = 6
bool is_blue_pin_5;
if (model_version > 3)
if (model_version >= 3)
{
if (model_version == 3)
{
Expand Down

0 comments on commit 58abc59

Please sign in to comment.