mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
CI: fix some caid issues (thx dboxoldie)
This commit is contained in:
committed by
Jacek Jendrzej
parent
0040c0d0af
commit
f170c38f10
@@ -36,11 +36,19 @@ int eDVBCICAManagerSession::receivedAPDU(const unsigned char *tag, const void *d
|
||||
caids.push_back((((const unsigned char*)data)[i] << 8) | (((const unsigned char*)data)[i + 1]));
|
||||
}
|
||||
if (!caids.empty())
|
||||
if ((caids[0] & 0xFF00) == 0x1800)
|
||||
{
|
||||
for (u32 i = 0; i < caids.size(); i++)
|
||||
{
|
||||
caids.push_back(0x186A);
|
||||
printf("%04x", 0x186A);
|
||||
if (caids[i] == 0x1830)
|
||||
{
|
||||
caids.push_back(0x186A);
|
||||
printf("%04x ", 0x186A);
|
||||
caids.push_back(0x186D);
|
||||
printf("%04x ", 0x186D);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
std::sort(caids.begin(), caids.end());
|
||||
printf("\n");
|
||||
|
||||
|
Reference in New Issue
Block a user