From 116ab74d16b192cbc6697a73bd45940a100bd0a6 Mon Sep 17 00:00:00 2001 From: OSQZSS Date: Mon, 23 Dec 2024 11:33:45 +0900 Subject: [PATCH] Update gpssim.c --- gpssim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpssim.c b/gpssim.c index 21c651c..1b01ebf 100644 --- a/gpssim.c +++ b/gpssim.c @@ -2392,7 +2392,10 @@ int main(int argc, char *argv[]) else if (data_format==SC08) { for (isamp=0; isamp<2*iq_buff_size; isamp++) + { iq8_buff[isamp] = iq_buff[isamp]>>4; // 12-bit bladeRF -> 8-bit HackRF + //iq8_buff[isamp] = iq_buff[isamp] >> 8; // for PocketSDR + } fwrite(iq8_buff, 1, 2*iq_buff_size, fp); }