Skip to content

Commit d6dcf20

Browse files
committed
Refactor for NuttX
1 parent 7ea4736 commit d6dcf20

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

feature-phone.wasm

0 Bytes
Binary file not shown.

feature-phone.zig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ pub export fn lv_demo_widgets() void {
3737
///////////////////////////////////////////////////////////////////////////////
3838
// Create Widgets
3939

40-
/// Create the LVGL Widgets that will be rendered on the display. Calls the
41-
/// LVGL API that has been wrapped in Zig. Based on
42-
/// https://docs.lvgl.io/master/widgets/label.html?highlight=lv_label_create#line-wrap-recoloring-and-scrolling
40+
/// Create the LVGL Widgets that will be rendered on the display
4341
fn createWidgets() !void {
4442
debug("createWidgets: start", .{});
4543
defer debug("createWidgets: end", .{});
@@ -191,6 +189,7 @@ export fn eventHandler(e: ?*c.lv_event_t) void {
191189
const text = @ptrCast([*:0]u8, data);
192190
const span = std.mem.span(text);
193191

192+
// Handle the identified button...
194193
if (std.mem.eql(u8, span, "Call")) {
195194
// If Call is clicked, call the number
196195
const call_number = display_text[0..len :0];

0 commit comments

Comments
 (0)