Permalink
Browse files

tryfix for phoenix mode (reported broken with 7037 by Bruty)

git-svn-id: http://streamboard.gmc.to/svn/oscam/trunk@7038 4b0bc96b-bc66-0410-9d44-ebda105a78c1
  • Loading branch information...
1 parent 660bcf4 commit c644df1707bf9b4c2d0324e9db389458296fea7c theparasol committed Jun 10, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 csctapi/icc_async.c
View
@@ -1104,16 +1104,17 @@ static int32_t InitCard (struct s_reader * reader, ATR * atr, BYTE FI, double d,
cs_debug_mask(D_ATR, "Reader %s protocol: T=%i: IFSC=%d, CWT=%d etu, BWT=%d etu, BGT=%d etu, EDC=%s\n", reader->label, reader->protocol_type, reader->ifsc, reader->CWT, reader->BWT, BGT, (edc == EDC_LRC) ? "LRC" : "CRC");
if( reader->mhz > 2000){
+ GT = 12L;
EGT = 2;
if (n == 255) //Extra Guard Time T1
EGT--; // T1 protocol, if TC1 = 255 then substract 1 ETU from guardtime
else
EGT =+n;
CGT = GT + EGT; // otherwise break T1 timings on MIPS, PPC ok
}
- reader->read_timeout = ETU_to_ms(reader, reader->BWT+reader->CWT);
- reader->block_delay = ETU_to_ms(reader, reader->BWT);
- reader->char_delay = ETU_to_ms(reader, reader->CWT);
+ reader->read_timeout = ETU_to_ms(reader, reader->BWT);
+ reader->block_delay = ETU_to_ms(reader, BGT);
+ reader->char_delay = ETU_to_ms(reader, CGT);
cs_debug_mask(D_ATR, "Setting reader %s timings: timeout=%u ms, block_delay=%u ms, char_delay=%u ms", reader->label, reader->read_timeout, reader->block_delay, reader->char_delay);
}
break;

0 comments on commit c644df1

Please sign in to comment.