Minor style cleanup

This commit is contained in:
Christian W. Zuckschwerdt 2020-10-03 14:58:30 +02:00
commit ea797cff8c
2 changed files with 3 additions and 3 deletions

View file

@ -125,7 +125,7 @@ void baseband_low_pass_filter(uint16_t const *x_buf, int16_t *y_buf, uint32_t le
static int const b[FILTER_ORDER + 1] = {FIX(0.07296), FIX(0.07296)};
unsigned long i;
// Fixme: Will Segmentation Fault if len < FILTERORDER
// TODO: Will Segmentation Fault if len < FILTERORDER
/* Calculate first sample */
y_buf[0] = ((a[1] * state->y[0] >> 1) + (b[0] * x_buf[0] >> 1) + (b[1] * state->x[0] >> 1)) >> (F_SCALE - 1);
@ -157,7 +157,7 @@ static int16_t atan2_int16(int32_t y, int32_t x)
int32_t const abs_y = abs(y);
int32_t angle;
if ((!x) && !y) return 0; // We get 8191 with the code below, FIXME
if (!x && !y) return 0; // We would get 8191 with the code below
if (x >= 0) { // Quadrant I and IV
int32_t denom = (abs_y + x);

View file

@ -554,7 +554,7 @@ static int acurite_atlas_decode(r_device *decoder, bitbuffer_t *bitbuffer, unsig
// Wind speed, temperature and humidity
// range -40 to 160 F
// FIXME: are there really 13 bits? use 11 for now.
// TODO: are there really 13 bits? use 11 for now.
int temp_raw = (bb[4] & 0x0F) << 7 | (bb[5] & 0x7F);
tempf = (temp_raw - 400) * 0.1;