#!/usr/bin/python

# Elecraft K2/K3 Rig Control Python Utilities
# Copyright (C) 2006, 2007, 2008, 2009 Leigh L. Klotz, Jr <Leigh@WA5ZNU.org>
# Licensed under Academic Free License 3.0 (See LICENSE)

import string, serial, time, sys, math, os
from lxml import etree

import k3lib

k3 = k3lib.K3()

if len(sys.argv) == 1:
    print(k3.modeq())
if len(sys.argv) > 1:
    print(k3.mode(sys.argv[1]))

k3.close()
