mirror of
https://github.com/kamilsss655/uv-k5-firmware-custom
synced 2024-11-22 19:18:56 +00:00
fix: bug showing first channel as M256 after multiple blacklists on SL II
This commit is contained in:
parent
22f47e72af
commit
3c60b37ebd
@ -711,7 +711,15 @@ static void Blacklist() {
|
|||||||
#ifdef ENABLE_SCAN_RANGES
|
#ifdef ENABLE_SCAN_RANGES
|
||||||
static uint8_t ScanRangeidx()
|
static uint8_t ScanRangeidx()
|
||||||
{
|
{
|
||||||
return (uint32_t)ARRAY_SIZE(rssiHistory) * 1000 / scanInfo.measurementsCount * scanInfo.i / 1000;
|
if(scanInfo.measurementsCount > 128) {
|
||||||
|
uint8_t i = (uint32_t)ARRAY_SIZE(rssiHistory) * 1000 / scanInfo.measurementsCount * scanInfo.i / 1000;
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool IsBlacklisted(uint16_t idx)
|
static bool IsBlacklisted(uint16_t idx)
|
||||||
|
Loading…
Reference in New Issue
Block a user