1.1.1
This commit is contained in:
@@ -5,7 +5,6 @@ from ch9120 import CH9120
|
||||
import ujson
|
||||
import math
|
||||
|
||||
start_time = time.time()
|
||||
|
||||
# --- CH9120 Network Configuration ---
|
||||
MODE = 0
|
||||
@@ -135,12 +134,6 @@ def update_ip_configuration(ip, gateway, subnet):
|
||||
|
||||
save_network_config(ip, gateway, subnet)
|
||||
|
||||
def get_uptime():
|
||||
seconds = int(time.time() - start_time)
|
||||
hrs = seconds // 3600
|
||||
mins = (seconds % 3600) // 60
|
||||
secs = seconds % 60
|
||||
return f"{hrs:02d}:{mins:02d}:{secs:02d}"
|
||||
|
||||
def main():
|
||||
ch9120_configure()
|
||||
|
||||
Reference in New Issue
Block a user