########################################################################### # # 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 test_can.py # # @author (last) Peter Lucia # @date (last) 21-May-2021 # @author (original) Peter Lucia # @date (original) 29-Apr-2021 # ############################################################################ import sys sys.path.append("../../") from dialin.utils import setup_virtual_can_interface, setup_real_can_interface resp = input("Setup virtual can interface? (y/n): ") if resp.lower() == "y": setup_virtual_can_interface() else: resp = input("Setup real can interface? (y,n): ") if resp.lower() == "y": setup_real_can_interface()