[ion] Share the Ion::Power::suspend stub

Change-Id: I6a278547a5b5d5caec796ad53e88bca706cbcad3
This commit is contained in:
Romain Goyet
2017-01-25 11:04:29 +01:00
parent caea1fe4cb
commit a56a2a060e
6 changed files with 26 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
#include "apps_container.h"
#include <ion.h>
extern "C" {
#include <assert.h>
}
@@ -51,5 +52,8 @@ bool AppsContainer::handleEvent(Ion::Events::Event event) {
switchTo(appAtIndex(0));
return true;
}
if (event == Ion::Events::OnOff) {
Ion::Power::suspend();
}
return false;
}