Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions wled00/ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

static IRrecv* irrecv;
static decode_results results;

// Runtime state private to this file - previously WLED_GLOBAL, a leftover from
// when all state lived in one big extern block regardless of who used it.
static byte whiteLast = 128; // white channel before turned off. Used for toggle function
static unsigned long irCheckedTime = 0;
static uint32_t lastValidCode = 0;
static byte lastRepeatableAction = ACTION_NONE;
Expand Down
2 changes: 1 addition & 1 deletion wled00/wled.h
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ WLED_GLOBAL byte bri _INIT(briS); // global brightness
WLED_GLOBAL byte briOld _INIT(0); // global brightness while in transition loop (previous iteration)
WLED_GLOBAL byte briT _INIT(0); // global brightness during transition
WLED_GLOBAL byte briLast _INIT(128); // brightness before turned off. Used for toggle function
WLED_GLOBAL byte whiteLast _INIT(128); // white channel before turned off. Used for toggle function in ir.cpp
// whiteLast is private to ir.cpp - see there.

// button
struct Button {
Expand Down
Loading