- chirp_stop() implemented

- chirps stop playing when ESC or F5
This commit is contained in:
2022-12-28 16:09:11 +01:00
parent 40c2b009a9
commit 97902594ad
5 changed files with 21 additions and 1 deletions

View File

@@ -657,6 +657,11 @@ extern "C" {
return 0;
}
static int cpp_stopchirp(lua_State *L) {
stopchirp();
return 0;
}
static int cpp_exit(lua_State *L) {
exit();
return 0;
@@ -759,6 +764,7 @@ void push_lua_funcs() {
lua_pushcfunction(L,cpp_freadb); lua_setglobal(L, "freadb");
lua_pushcfunction(L,cpp_playchirp); lua_setglobal(L, "playchirp");
lua_pushcfunction(L,cpp_stopchirp); lua_setglobal(L, "stopchirp");
lua_pushcfunction(L,cpp_exit); lua_setglobal(L, "quit");