Skip to content

Commit

Permalink
Ieee802154UwbIrTransmitter: Fixed multiplying an enum with a double.
Browse files Browse the repository at this point in the history
This is deprecated in the newest llvm compiler.
  • Loading branch information
levy committed Feb 22, 2024
1 parent 098c7a2 commit 8820a30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void Ieee802154UwbIrTransmitter::generateSyncPreamble(std::map<simsec, WpHz>& da

void Ieee802154UwbIrTransmitter::generateSFD(std::map<simsec, WpHz>& data, simtime_t& time, const simtime_t startTime) const
{
const simtime_t sfdStart = cfg.NSync * cfg.sync_symbol_duration;
const simtime_t sfdStart = static_cast<int>(cfg.NSync) * cfg.sync_symbol_duration;
for (short n = 0; n < 8; n = n + 1) {
if (Ieee802154UwbIrMode::shortSFD[n] != 0) {
for (short pos = 0; pos < cfg.CLength; pos = pos + 1) {
Expand Down

0 comments on commit 8820a30

Please sign in to comment.