Skip to content

Commit

Permalink
Type correction.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx authored Dec 22, 2016
1 parent d72bfeb commit 8c0f05c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RSSIInterpolator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ int CRSSIInterpolator::interpolate(uint16_t val) const
if (it == m_map.begin())
return it->second;

unsigned int x2 = it->first;
int y2 = it->second;
uint16_t x2 = it->first;
int y2 = it->second;

--it;
unsigned int x1 = it->first;
int y1 = it->second;
uint16_t x1 = it->first;
int y1 = it->second;

float p = float(val - x1) / float(x2 - x1);

Expand Down

0 comments on commit 8c0f05c

Please sign in to comment.