mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Type correction.
This commit is contained in:
@@ -78,11 +78,11 @@ int CRSSIInterpolator::interpolate(uint16_t val) const
|
||||
if (it == m_map.begin())
|
||||
return it->second;
|
||||
|
||||
unsigned int x2 = it->first;
|
||||
uint16_t x2 = it->first;
|
||||
int y2 = it->second;
|
||||
|
||||
--it;
|
||||
unsigned int x1 = it->first;
|
||||
uint16_t x1 = it->first;
|
||||
int y1 = it->second;
|
||||
|
||||
float p = float(val - x1) / float(x2 - x1);
|
||||
|
||||
Reference in New Issue
Block a user