Skip to content

Commit 8a98692

Browse files
return statement added
1 parent e10abb3 commit 8a98692

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/application/luaport.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,20 @@ int show_pairing_screen(bool is_paired)
7575
status = luaL_dostring(L_global, "frame.display.text('Ready to Pair', 200, 140);"
7676
"frame.display.text('Frame '..frame.bluetooth.address():sub(-2, -1), 245, 210, { color = 'GREEN' });"
7777
"frame.display.show();");
78-
return status;
7978
}
8079
else
8180
{
8281
status = luaL_dostring(L_global, "frame.display.text('Frame is Paired', 185, 140);"
8382
"frame.display.text('Frame '..frame.bluetooth.address():sub(-2, -1), 245, 210, { color = 'ORANGE' });"
8483
"frame.display.show();");
85-
return status;
8684
}
8785

88-
8986
if (status != LUA_OK)
9087
{
9188
lua_pop(L_global, -1);
9289
error();
9390
}
91+
return status;
9492
}
9593

9694
void run_lua(bool is_paired)

0 commit comments

Comments
 (0)