mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
CI: fix some caid issues (thx dboxoldie)
Origin commit data
------------------
Branch: master
Commit: f170c38f10
Author: TangoCash <eric@loxat.de>
Date: 2017-11-06 (Mon, 06 Nov 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
committed by
Jacek Jendrzej
parent
ca6d4a88b2
commit
d7f96461bf
@@ -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