mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-26 23:35:53 +00:00
gif responsive
This commit is contained in:
@@ -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