FIX initialisation and declaration order
This commit is contained in:
@@ -43,7 +43,8 @@ namespace static_scheduling {
|
||||
|
||||
static constexpr std::chrono::microseconds kTaskRunTime = 100000us;
|
||||
|
||||
ResetDevice::ResetDevice(Timer& timer) : _timer(timer), _resetButton(PUSH_BUTTON) {
|
||||
ResetDevice::ResetDevice(Timer& timer)
|
||||
: _resetButton(PUSH_BUTTON), _timer(timer), _pressTime(0) {
|
||||
_resetButton.rise(callback(this, &ResetDevice::onRise));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user