Reinitialize current mode after changing the range parameters so they are immediately reflected

Marking this the 1.0 release
This commit is contained in:
Mark van Renswoude 2017-05-20 10:29:55 +02:00
parent 65e34bfdd1
commit aadb3d68ca

View File

@ -204,6 +204,8 @@ void handleSetRange(uint8_t* packet)
udpServer.write(Command::SetRange); udpServer.write(Command::SetRange);
stairs->getRange(&udpServer); stairs->getRange(&udpServer);
currentMode->init(stairs, currentTime);
} }