- chirp_stop() implemented
- chirps stop playing when ESC or F5
This commit is contained in:
6
lua.cpp
6
lua.cpp
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user