code: def CallHwclock(logger):
    
    command = ['/sbin/hwclock', '--hctosys']
    try:
      subprocess.check_call(command)
    except subprocess.CalledProcessError:
      logger.warning('Failed to sync system time with hardware clock.')
    else:
      logger.info('Synced system time with hardware clock.')
docs: Sync clock using hwclock.
  
    Args:
      logger: logger object, used to write to SysLog and serial port.