Don't automatically set the time from Python

The Python MO is to do as little as possible beyond what the user has intentionally instructed. So don't try to set the time automatically.
This commit is contained in:
Jonathan Bennett
2024-08-29 22:29:20 -05:00
committed by GitHub
parent bcce5687c5
commit 4500850063

View File

@@ -472,11 +472,6 @@ class MeshInterface: # pylint: disable=R0902
p.altitude = int(altitude)
logging.debug(f"p.altitude:{p.altitude}")
if timeSec == 0:
timeSec = int(time.time()) # returns unix timestamp in seconds
p.time = timeSec
logging.debug(f"p.time:{p.time}")
if wantResponse:
onResponse = self.onResponsePosition
else: