mirror of
https://github.com/m5stack/StackChan.git
synced 2026-04-27 11:02:40 +00:00
update firmware source code to v0.18 (#9)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
#include <smooth_ui_toolkit.hpp>
|
||||
#include <uitk/short_namespace.hpp>
|
||||
#include <mooncake_log.h>
|
||||
#include <mooncake.h>
|
||||
#include <apps/apps.h>
|
||||
@@ -35,6 +36,19 @@ extern "C" void app_main(void)
|
||||
// Main loop
|
||||
while (1) {
|
||||
GetHAL().feedTheDog();
|
||||
GetHAL().updateHeapStatusLog();
|
||||
|
||||
GetMooncake().update();
|
||||
|
||||
if (GetHAL().isXiaozhiStartRequested()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Uninstall all apps and destroy mooncake
|
||||
GetMooncake().uninstallAllApps();
|
||||
DestroyMooncake();
|
||||
|
||||
// Start xiaozhi, never returns
|
||||
GetHAL().startXiaozhi();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user