mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-12 19:23:39 +00:00
Fix narrowing conversion warnings.
This commit is contained in:
parent
227719ff1d
commit
4c8550bb7d
@ -70,8 +70,8 @@ public:
|
|||||||
constexpr OOKClockRecovery(
|
constexpr OOKClockRecovery(
|
||||||
const float samples_per_symbol
|
const float samples_per_symbol
|
||||||
) : symbol_phase_inc_nominal { static_cast<uint32_t>(std::round((1ULL << 32) / samples_per_symbol)) },
|
) : symbol_phase_inc_nominal { static_cast<uint32_t>(std::round((1ULL << 32) / samples_per_symbol)) },
|
||||||
symbol_phase_inc_k { symbol_phase_inc_nominal * (2.0f / 8.0f) / samples_per_symbol },
|
symbol_phase_inc_k { static_cast<uint32_t>(std::round(symbol_phase_inc_nominal * (2.0f / 8.0f) / samples_per_symbol)) },
|
||||||
phase_detector { samples_per_symbol },
|
phase_detector { static_cast<size_t>(std::round(samples_per_symbol)) },
|
||||||
phase_accumulator { symbol_phase_inc_nominal }
|
phase_accumulator { symbol_phase_inc_nominal }
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user