mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-12 11:17:06 +01:00
terminal: context is a temporary
Make sure it could be moved further along, and the values inside of it can be safely moved as well. Also fixup commands that were missing ctx in OK / Error.
This commit is contained in:
@@ -1257,7 +1257,7 @@ void buttonSetup() {
|
||||
DEBUG_MSG_P(PSTR("[BUTTON] Number of buttons: %u\n"), count);
|
||||
|
||||
#if TERMINAL_SUPPORT
|
||||
terminalRegisterCommand(F("BUTTON"), [](const terminal::CommandContext& ctx) {
|
||||
terminalRegisterCommand(F("BUTTON"), [](::terminal::CommandContext&& ctx) {
|
||||
unsigned index { 0u };
|
||||
for (auto& button : _buttons) {
|
||||
ctx.output.printf_P(PSTR("%u - "), index++);
|
||||
|
||||
Reference in New Issue
Block a user