osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.62k stars 762 forks source link

fixed a few typos, indentations, and simplified if cases #279

Closed lenhart closed 3 years ago

lenhart commented 3 years ago

fixed a few more typos in gpssim.h limeplayer.c: fixed indentations and merged a few if cases with same outcome.

I think I found an error too, but want to ask for comment before fixing it:

    lms_range_t LPFBWRange;
    LMS_GetLPFBWRange(device, LMS_CH_TX, &LPFBWRange);
    // printf("TX%d LPFBW [%lf .. %lf] (step %lf)" "\n", channel, LPFBWRange.min, LPFBWRange.max, LPFBWRange.step);
    double LPFBW = TX_BANDWIDTH;
    if(LPFBW < LPFBWRange.min){
        LPFBW = LPFBWRange.min;
    }
    if(LPFBW > LPFBWRange.max){
        LPFBW = LPFBWRange.min;  //TODO should this be .max?
    }
lenhart commented 3 years ago

oh, the second commit was only for myself to not forget the error position. Did not intend to push it.

I am afraid that I mess something up with git if I rewrite history now.. so I leave it and we'll figure out how to remove it :)