Skip to content

Commit

Permalink
Ignore ltcc,ltecc==0 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
windytan committed May 15, 2022
1 parent e0be9c7 commit 145b483
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tmc/tmc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,12 @@ void TMCService::receiveSystemGroup(uint16_t message, Json::Value* jsonroot) {
(*jsonroot)["tmc"]["system_info"]["gap"] = gap_values[g];

int ltcc = getBits<4>(message, 0);
(*jsonroot)["tmc"]["system_info"]["ltcc"] = ltcc;
if (ltcc)
(*jsonroot)["tmc"]["system_info"]["ltcc"] = ltcc;
} else if (variant == 2) {
int ltecc = getBits<8>(message, 0);
(*jsonroot)["tmc"]["system_info"]["ltecc"] = ltecc;
if (ltecc)
(*jsonroot)["tmc"]["system_info"]["ltecc"] = ltecc;
}
}

Expand Down

0 comments on commit 145b483

Please sign in to comment.