Changeset 486


Ignore:
Timestamp:
Nov 2, 2009, 6:59:23 PM (10 years ago)
Author:
Merlin
Message:

Added card_frequency param

Location:
branches/merlin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/merlin/include/globals.h

    r438 r486  
    314314    int detect;
    315315    unsigned long frequency;
     316    unsigned long card_frequency;
    316317
    317318    int online;
  • branches/merlin/src/config.c

    r421 r486  
    10741074        }
    10751075    }
     1076    if (!strcmp(token, "card_frequency")) {
     1077        char *endptr;
     1078        double mhz = strtod(value, &endptr);
     1079        if (*endptr == '\0') {
     1080            rdr->card_frequency = mhz * 1000000;
     1081        }
     1082    }
    10761083    if (!strcmp(token, "protocol")) {
    10771084        if (!strcmp(value, "phoenix"))
     
    11751182            reader[nr].maxqlen = CS_MAXQLEN;
    11761183            reader[nr].frequency = 3571200;
     1184            reader[nr].card_frequency = 3571200;
    11771185            strcpy(reader[nr].pincode, "none");
    11781186            for (i = 1; i < CS_MAXCAIDTAB; reader[nr].ctab.mask[i++] = 0xffff);
Note: See TracChangeset for help on using the changeset viewer.