mirror of
https://github.com/thelsing/knx.git
synced 2025-10-12 11:15:54 +02:00
28 lines
475 B
C++
28 lines
475 B
C++
#include "programmingmodestate.h"
|
|
#include "runningstate.h"
|
|
#include "knx_facade.h"
|
|
|
|
#ifdef USE_STATES
|
|
ProgramModeState programModeState = ProgramModeState();
|
|
|
|
void ProgramModeState::enterState()
|
|
{
|
|
knx.progMode(true);
|
|
}
|
|
|
|
void ProgramModeState::leaveState()
|
|
{
|
|
knx.progMode(false);
|
|
}
|
|
|
|
void ProgramModeState::shortButtonPress()
|
|
{
|
|
switchToSate(runningState);
|
|
}
|
|
|
|
void ProgramModeState::loop()
|
|
{
|
|
State::loop();
|
|
knx.knxLoop();
|
|
}
|
|
#endif |