{% if serial_device == "ttyS0" %} #COM1 equivalent, /dev/ttyS0 /dev/ttyS0 uart none {% elif serial_device == "ttyS1" %} #COM2 equivalent, /dev/ttyS1 /dev/ttyS1 uart none {% endif %}