Skip to content

Commit

Permalink
making TX period available since downstream wants to multiply it by t…
Browse files Browse the repository at this point in the history
…wo (#302)

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
  • Loading branch information
rusefillc committed Dec 6, 2023
1 parent 56ee5c8 commit 72d5a0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void CanTxThread(void*)
SendCanForChannel(ch);
}

chThdSleepMilliseconds(10);
chThdSleepMilliseconds(WBO_TX_PERIOD_MS);
}
}

Expand Down
3 changes: 3 additions & 0 deletions for_rusefi/wideband_can.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#define WB_MGS_ECU_STATUS 0xEF5'0000
#define WB_DATA_BASE_ADDR 0x190

// we transmit every 10ms
#define WBO_TX_PERIOD_MS 10

namespace wbo
{
enum class Fault : uint8_t
Expand Down

0 comments on commit 72d5a0d

Please sign in to comment.