Ignore:
Timestamp:
01/11/10 19:30:52 (12 years ago)
Author:
alno
Message:

WebIf:

  • Merging revisions 1180-1185 of trunk
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/csctapi/pps.c

    r1177 r1189  
    471471#elif COOL
    472472    if(pps->icc->ifd->io->com==RTYP_SCI) {
    473         typedef unsigned long u_int32;
    474         u_int32 clk;
    475         clk = atr_fs_table[pps->parameters.FI];
    476         if (cnxt_smc_set_clock_freq(handle, clk))
    477             return ICC_ASYNC_IFD_ERROR;
    478 #ifdef DEBUG_PROTOCOL
    479         printf("Coolstream: set clock to %lu Hz\n", clk);
    480 #endif
    481         return ICC_ASYNC_OK;
     473        int mhz = atr_fs_table[pps->parameters.FI] / 10000;
     474        if (!Cool_SetBaudrate(mhz))
     475            return PPS_ICC_ERROR;
     476#ifdef DEBUG_PROTOCOL
     477        printf("Coolstream: set clock to %i * 10kHz\n", mhz);
     478#endif
     479        return PPS_OK;
    482480    }
    483481    else
Note: See TracChangeset for help on using the changeset viewer.