mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
zapit/src/transponder.cpp: add static ::pol to get polarization letter
Origin commit data
------------------
Commit: d1801782a3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-04-16 (Mon, 16 Apr 2012)
This commit is contained in:
@@ -47,6 +47,7 @@ public:
|
||||
void dumpServiceXml(FILE * fd);
|
||||
void dump(std::string label = "tp");
|
||||
void ddump(std::string label = "tp");
|
||||
static char pol(unsigned char pol);
|
||||
};
|
||||
|
||||
typedef std::map <transponder_id_t, transponder> transponder_list_t;
|
||||
|
@@ -108,3 +108,15 @@ void transponder::ddump(std::string label)
|
||||
if (zapit_debug)
|
||||
dump(label);
|
||||
}
|
||||
|
||||
char transponder::pol(unsigned char p)
|
||||
{
|
||||
if (p == 0)
|
||||
return 'H';
|
||||
else if (p == 1)
|
||||
return 'V';
|
||||
else if (p == 2)
|
||||
return 'L';
|
||||
else
|
||||
return 'R';
|
||||
}
|
||||
|
Reference in New Issue
Block a user