vuplus: relevant pids routing - fix

This commit is contained in:
BPanther
2020-01-18 10:48:38 +01:00
committed by Thilo Graf
parent 0875e2c853
commit 1db0ffb694
2 changed files with 3 additions and 3 deletions

View File

@@ -1949,7 +1949,7 @@ void cCA::SetCIDelay(int Delay)
} }
} }
void cCA::SetCIRelevantPidsRouting(bool RPR, int slot) void cCA::SetCIRelevantPidsRouting(int RPR, int slot)
{ {
char buf[64]; char buf[64];
snprintf(buf, 64, "/proc/stb/tsmux/ci%d_relevant_pids_routing", slot); snprintf(buf, 64, "/proc/stb/tsmux/ci%d_relevant_pids_routing", slot);
@@ -1957,7 +1957,7 @@ void cCA::SetCIRelevantPidsRouting(bool RPR, int slot)
printf("%s -> %s to: %b\n", FILENAME, __func__, RPR); printf("%s -> %s to: %b\n", FILENAME, __func__, RPR);
if (ci) if (ci)
{ {
fprintf(ci, "%s", RPR == true ? "yes" : "no"); fprintf(ci, "%s", RPR == 1 ? "yes" : "no");
fclose(ci); fclose(ci);
} }
} }

View File

@@ -333,7 +333,7 @@ public:
/// dvb wait delay for ci response /// dvb wait delay for ci response
void SetCIDelay(int Delay); void SetCIDelay(int Delay);
/// relevant pids routing /// relevant pids routing
void SetCIRelevantPidsRouting(bool RPR, int slot = 0); void SetCIRelevantPidsRouting(int RPR, int slot = 0);
#endif #endif
/// Start the CA module /// Start the CA module