Skip to content

Commit

Permalink
Buttons OK
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jun 4, 2023
1 parent c80556b commit 9650c4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified feature-phone.wasm
Binary file not shown.
4 changes: 3 additions & 1 deletion feature-phone.zig
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ export fn eventHandler(e: ?*c.lv_event_t) void {
debug("Call {s}", .{call_number});

if (builtin.cpu.arch == .wasm32 or builtin.cpu.arch == .wasm64) {
debug("webasm", .{});
debug("Running in WebAssembly, simulate the Phone Call", .{});
} else {
debug("Running on PinePhone, make an actual Phone Call", {});
}
} else if (std.mem.eql(u8, span, "Cancel")) {
// If Cancel is clicked, erase the last digit
Expand Down

0 comments on commit 9650c4b

Please sign in to comment.