aboutsummaryrefslogtreecommitdiff
path: root/src/pmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pmt.c')
-rw-r--r--src/pmt.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/pmt.c b/src/pmt.c
index 9d284b0..f3253e0 100644
--- a/src/pmt.c
+++ b/src/pmt.c
@@ -26,6 +26,40 @@ static int initialized = 0;
pmt pmts[MAX_PMTS];
+void get_pmt_type_string(int pmt_type, char *s)
+{
+ switch (pmt_type) {
+ case 1:
+ sprintf(s,"Normal");
+ break;
+ case 2:
+ sprintf(s,"OWL");
+ break;
+ case 3:
+ sprintf(s,"LG");
+ break;
+ case 4:
+ sprintf(s,"BUTT");
+ break;
+ case 5:
+ sprintf(s,"NECK");
+ break;
+ case 6:
+ sprintf(s,"CALIBRATION");
+ break;
+ case 10:
+ sprintf(s,"SPARE");
+ break;
+ case 11:
+ sprintf(s,"INVALID");
+ break;
+ default:
+ sprintf(s,"???");
+ }
+
+ return;
+}
+
int load_pmt_info()
{
int i, j;