FreeCalypso > hg > freecalypso-tools
comparison rvinterf/etmsync/readcal.c @ 279:36ae854536e8
fc-readcal: fixed bug in the shifting of afcdac
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 17 Nov 2017 04:38:11 +0000 |
parents | 31d056f37647 |
children | e40bb5a6c6b9 |
comparison
equal
deleted
inserted
replaced
278:31d056f37647 | 279:36ae854536e8 |
---|---|
61 int rc; | 61 int rc; |
62 | 62 |
63 rc = do_rfpr(INITIAL_AFC_DAC, &datum); | 63 rc = do_rfpr(INITIAL_AFC_DAC, &datum); |
64 if (rc) | 64 if (rc) |
65 exit(rc); | 65 exit(rc); |
66 datum << 3; | 66 datum <<= 3; |
67 bytes[0] = datum; | 67 bytes[0] = datum; |
68 bytes[1] = datum >> 8; | 68 bytes[1] = datum >> 8; |
69 write_out_file("afcdac", bytes, 2); | 69 write_out_file("afcdac", bytes, 2); |
70 } | 70 } |
71 | 71 |