mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-01-08 22:48:23 +03:00
Remove redundant assignment
This commit is contained in:
parent
2282587c15
commit
eb1aabbec4
@ -1289,8 +1289,6 @@ NfcCommand mf_classic_poller_handler_nested_calibrate(MfClassicPoller* instance)
|
||||
float std_dev = sqrtf(variance);
|
||||
|
||||
// Filter out values over 3 standard deviations away from the median
|
||||
dict_attack_ctx->d_min = UINT16_MAX;
|
||||
dict_attack_ctx->d_max = 0;
|
||||
for(uint8_t i = 0; i < valid_distances; i++) {
|
||||
if(fabsf((float)distances[i] - median) <= 3 * std_dev) {
|
||||
if(distances[i] < dict_attack_ctx->d_min) dict_attack_ctx->d_min = distances[i];
|
||||
|
Loading…
Reference in New Issue
Block a user