Skip to content

Commit

Permalink
fix bug caused by lower mac refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Jun 7, 2024
1 parent ce1afb0 commit 2dc9553
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/l2/lower_mac_coding.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct LowerMacCoding {
-> std::array<Type, Size> {
std::array<Type, Size> res{};
for (std::size_t i = 0; i < Size; i++) {
auto k = 1 + (a * (i + 1)) % ViterbiCodec::K;
auto k = 1 + (a * (i + 1)) % Size;
res[i] = data[k - 1]; // to interleave: DataOut[i-1] = DataIn[k-1]
}

Expand Down
2 changes: 1 addition & 1 deletion src/l2/lower_mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ auto LowerMac::process(const std::vector<uint8_t>& frame, BurstType burst_type)
// sb contains BSCH
// ✅ done
std::array<bool, 120> sb_input{};
for (auto i = 0; i < 30; i++) {
for (auto i = 0; i < 120; i++) {
sb_input[i] = frame[94 + i];
};

Expand Down

0 comments on commit 2dc9553

Please sign in to comment.