Skip to content

Commit

Permalink
review corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
adma authored and adma committed Feb 4, 2014
1 parent 8aaa0a9 commit 9b6aa0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion communication/CanTp/CanTp.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ static void handleNextTxFrameSent(
if (txRuntime->iso15765.STmin < 0x80) {
txRuntime->iso15765.stateTimeoutCount = CANTP_CONVERT_MS_TO_MAIN_CYCLES(txRuntime->iso15765.STmin) + 1;
} else if (txRuntime->iso15765.STmin > 0xF0 && txRuntime->iso15765.STmin < 0xFA) {
txRuntime->iso15765.stateTimeoutCount = CANTP_CONVERT_MS_TO_MAIN_CYCLES((txRuntime->iso15765.STmin - 0xF0)/10) + 1;
txRuntime->iso15765.stateTimeoutCount = 1; //0.1 ms resoultion needs a lower task period. So hard coded to 1 main cycle
}
else {
txRuntime->iso15765.stateTimeoutCount = CANTP_CONVERT_MS_TO_MAIN_CYCLES(0x7F) + 1;
Expand Down

0 comments on commit 9b6aa0e

Please sign in to comment.