@@ -344,7 +344,7 @@ Phy8733b::tssi_de_plan(const TssiPowerInfo8733b &power, uint8_t channel) {
344344 };
345345 auto subtract_two = [](int8_t value) {
346346 return static_cast <int8_t >(
347- std::max (-128 , static_cast <int >(value) - 2 ));
347+ ( std::max) (-128 , static_cast <int >(value) - 2 ));
348348 };
349349
350350 TssiDePlan8733b plan;
@@ -432,7 +432,8 @@ Phy8733b::tssi_rate_offsets(const TxPowerTargets8733b &targets, uint8_t band,
432432 return std::nullopt ;
433433 }
434434 offsets[rate] = static_cast <int8_t >(std::clamp (
435- static_cast <int >(std::min (target, max_target_qdbm)) - 64 , -128 , 127 ));
435+ static_cast <int >((std::min)(target, max_target_qdbm)) - 64 , -128 ,
436+ 127 ));
436437 }
437438 return offsets;
438439}
@@ -492,11 +493,12 @@ TssiThermalPlan8733b Phy8733b::tssi_thermal_plan(uint8_t efuse_thermal,
492493 return index < 18 ? 0 : index < 20 ? 3 : 5 ;
493494 };
494495 for (size_t i = 0 ; i < 32 ; ++i)
495- signed_offsets[i] = static_cast <int8_t >(-swing (std::min (i, size_t {29 })));
496+ signed_offsets[i] =
497+ static_cast <int8_t >(-swing ((std::min)(i, size_t {29 })));
496498 size_t swing_index = 1 ;
497499 for (int i = 63 ; i >= 32 ; --i) {
498500 signed_offsets[static_cast <size_t >(i)] =
499- swing (std::min (swing_index, size_t {29 }));
501+ swing (( std::min) (swing_index, size_t {29 }));
500502 ++swing_index;
501503 }
502504 for (size_t word = 0 ; word < plan.offsets .size (); ++word) {
0 commit comments