Skip to content

Commit

Permalink
https://github.com/rusefi/rusefi-hardware/issues/242
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Aug 30, 2023
1 parent 610b05a commit 238024e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions digital-inputs/firmware/can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ static void receiveBoardStatus(const uint8_t msg[8]) {
int boardId = (msg[0] << 8) | msg[1];
int numSecondsSinceReset = (msg[2] << 16) | (msg[3] << 8) | msg[4];

chprintf(chp, " * BoardStatus: BoardID=%d numSecs=%d\r\n", boardId, numSecondsSinceReset);
if (outputMode.displayCanReceive) {
chprintf(chp, " CAN RX BoardStatus: BoardID=%d numSecs=%d\r\n", boardId, numSecondsSinceReset);
}
if (currentBoard == nullptr) {
for (int boardIdx = 0; boardIdx < NUM_BOARD_CONFIGS; boardIdx++) {
BoardConfig &c = boardConfigs[boardIdx];
Expand All @@ -74,7 +76,9 @@ static void receiveBoardStatus(const uint8_t msg[8]) {
static void receiveOutputMetaInfo(const uint8_t msg[8]) {
if (msg[0] == CAN_BENCH_HEADER) {
outputCount = msg[2];
chprintf(chp, " ***** got outputCount %d \r\n", outputCount);
if (outputMode.displayCanReceive) {
chprintf(chp, " CAN RX outputCount %d \r\n", outputCount);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion digital-inputs/firmware/test_digital_outputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ bool testEcuDigitalOutputs() {

void setOutputAddrIndex(int index) {
int param = index;
chprintf(chp, "Setting ADDR %d\r\n", param);
chprintf(chp, " Setting ADDR %d\r\n", param);
for (size_t i = 0;i<efi::size(addrPins);i++) {
int bitState = (index & 1) ^ XOR_MAGIC;
index = index / 2;
Expand Down
2 changes: 1 addition & 1 deletion digital-inputs/firmware/test_logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ bool testEcuDigitalOutput(int testLineIndex) {
//&& isGood
; i++) {
bool isSet = (i & 1) == 0;
chprintf(chp, " sending line=%d value=%d\r\n", index2human(testLineIndex), isSet);
chprintf(chp, " sending line=%d value=%d\r\n", index2human(testLineIndex), isSet);
// toggle the ECU pin
sendCanPinState(testLineIndex, isSet ^ 1);

Expand Down

0 comments on commit 238024e

Please sign in to comment.