Index: tests/peter/set_RTCs.py =================================================================== diff -u -rcc6dc0f17386f6967a26681dc9952afe7c18884a -r32e628abcbbd3fd70866505d9f2836a6f732ef06 --- tests/peter/set_RTCs.py (.../set_RTCs.py) (revision cc6dc0f17386f6967a26681dc9952afe7c18884a) +++ tests/peter/set_RTCs.py (.../set_RTCs.py) (revision 32e628abcbbd3fd70866505d9f2836a6f732ef06) @@ -1,14 +1,14 @@ ########################################################################### # -# Copyright (c) 2021-2022 Diality Inc. - All Rights Reserved. +# Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file set_RTCs.py # # @author (last) Dara Navaei -# @date (last) 28-Jun-2022 +# @date (last) 30-Oct-2022 # @author (original) Peter Lucia # @date (original) 29-Apr-2021 # @@ -29,17 +29,17 @@ current_time_stamp = time() current_time = localtime(current_time_stamp) print(current_time) + """ + if hd.cmd_log_in_to_hd(): + hd.rtc.cmd_set_rtc_time_and_date(current_time.tm_sec, + current_time.tm_min, + current_time.tm_hour, + current_time.tm_mday, + current_time.tm_mon, + current_time.tm_year) + print("Successfully set HD rtc") + """ - #if hd.cmd_log_in_to_hd(): - # hd.rtc.cmd_set_rtc_time_and_date(current_time.tm_sec, - # current_time.tm_min, - # current_time.tm_hour, - # current_time.tm_mday, - # current_time.tm_mon, - # current_time.tm_year) - # print("Successfully set HD rtc") - - if dg.cmd_log_in_to_dg(): dg.rtc.cmd_set_rtc_time_and_date(current_time.tm_sec, current_time.tm_min, @@ -48,5 +48,5 @@ current_time.tm_mon, current_time.tm_year) print("Successfully set DG rtc") + #""" -