|
|
@@ -228,7 +228,7 @@ static int l_mobile_simid(lua_State* L) {
|
|
|
设置RRC自动释放时间间隔,当开启时后,遇到极弱信号+频繁数据操作可能会引起网络严重故障,因此需要额外设置自动重启协议栈
|
|
|
@api mobile.rtime(time, auto_reset_stack)
|
|
|
@int RRC自动释放时间,等同于Air724的AT+RTIME,单位秒,写0或者不写则是停用,不要超过20秒,没有意义
|
|
|
-@boolean 网络遇到严重故障时尝试自动恢复,和飞行模式/SIM卡切换冲突,true开启,false关闭,留空时不做任何处理
|
|
|
+@boolean 网络遇到严重故障时尝试自动恢复,和飞行模式/SIM卡切换冲突,true开启,false关闭,留空时,如果设置了时间则自动开启
|
|
|
@return nil 无返回值
|
|
|
*/
|
|
|
static int l_mobile_set_rrc_auto_release_time(lua_State* L) {
|
|
|
@@ -236,13 +236,13 @@ static int l_mobile_set_rrc_auto_release_time(lua_State* L) {
|
|
|
if (LUA_TBOOLEAN == lua_type(L, 2)) {
|
|
|
luat_mobile_fatal_error_auto_reset_stack(lua_toboolean(L, 2));
|
|
|
}
|
|
|
-// else
|
|
|
-// {
|
|
|
-// if (luaL_optinteger(L, 1, 0))
|
|
|
-// {
|
|
|
-// luat_mobile_fatal_error_auto_reset_stack(1);
|
|
|
-// }
|
|
|
-// }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (luaL_optinteger(L, 1, 0))
|
|
|
+ {
|
|
|
+ luat_mobile_fatal_error_auto_reset_stack(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
return 0;
|
|
|
}
|
|
|
|