File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11# Copyright (c) Quectel Wireless Solution, Co., Ltd.All Rights Reserved.
2- #
2+ #
33# Licensed under the Apache License, Version 2.0 (the "License");
44# you may not use this file except in compliance with the License.
55# You may obtain a copy of the License at
6- #
6+ #
77# http://www.apache.org/licenses/LICENSE-2.0
8- #
8+ #
99# Unless required by applicable law or agreed to in writing, software
1010# distributed under the License is distributed on an "AS IS" BASIS,
1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2121"""
2222# global datacall_flag
2323datacall_flag = 1
24-
2524def _repl_enable ():
2625 global datacall_flag
2726 if "system_config.json" in uos .listdir ("/" ):
2827 with open ("/system_config.json" , "r" , encoding = "utf-8" ) as fd :
2928 try :
3029 json_data = ujson .load (fd )
3130 datacall_flag = json_data .get ("datacallFlag" , 1 )
32-
3331 except ValueError :
3432 with open ("/usr/system_config.json" , "w" , encoding = "utf-8" ) as fdw :
3533 new_json_data = ujson .dumps ({"replFlag" : 0 , "datacallFlag" : datacall_flag })
You can’t perform that action at this time.
0 commit comments