mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2026-10-22 22:57:36 -06:00
gif responsive
This commit is contained in:
1 parent
74ec86da8f
commit
dd26e3528b
2 files changed
+5
-4
No files matched your search
@@ -197,8 +197,6 @@ async fn userland_task() {
|
||||
defmt::info!("Executing Binary");
|
||||
entry();
|
||||
|
||||
unsafe { HEAP.free() };
|
||||
|
||||
// enable kernel ui
|
||||
{
|
||||
ENABLE_UI.store(true, Ordering::Release);
|
||||
|
||||
@@ -51,11 +51,14 @@ pub fn main() {
|
||||
.unwrap();
|
||||
frame_num += 1;
|
||||
|
||||
if frame_num % 100 == 0 {
|
||||
if frame_num % 5 == 0 {
|
||||
let event = get_key();
|
||||
if event.state != KeyState::Idle {
|
||||
match event.key {
|
||||
KeyCode::Esc => return,
|
||||
KeyCode::Esc => {
|
||||
drop(buf);
|
||||
return;
|
||||
}
|
||||
_ => (),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user