Skip to content

Commit

Permalink
Fix SonarQube issues
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Sep 7, 2023
1 parent f16b943 commit 2a498f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cpp/devices/scsi_printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ bool SCSIPrinter::WriteByteSequence(span<const uint8_t> buf)

GetLogger().Trace("Appending " + to_string(buf.size()) + " byte(s) to printer output file ''" + filename + "'");

out.write(reinterpret_cast<const char *>(buf.data()), buf.size());
out.write((const char *)(buf.data()), buf.size());

return !out.fail();
}
Expand Down
6 changes: 3 additions & 3 deletions cpp/hal/gpiobus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ int GPIOBUS::SendHandShake(uint8_t *buf, int count, int delay_after_bytes)
for (i = 0; i < count; i++) {
if (i == delay_after_bytes) {
LOGTRACE("%s DELAYING for %dus after %d bytes", __PRETTY_FUNCTION__, SCSI_DELAY_SEND_DATA_DAYNAPORT_US,
(int)delay_after_bytes)
delay_after_bytes)
SysTimer::SleepUsec(SCSI_DELAY_SEND_DATA_DAYNAPORT_US);
}

Expand Down Expand Up @@ -326,7 +326,7 @@ int GPIOBUS::SendHandShake(uint8_t *buf, int count, int delay_after_bytes)
for (i = 0; i < count; i++) {
if (i == delay_after_bytes) {
LOGTRACE("%s DELAYING for %dus after %d bytes", __PRETTY_FUNCTION__, SCSI_DELAY_SEND_DATA_DAYNAPORT_US,
(int)delay_after_bytes)
delay_after_bytes)
SysTimer::SleepUsec(SCSI_DELAY_SEND_DATA_DAYNAPORT_US);
}

Expand Down Expand Up @@ -455,4 +455,4 @@ bool GPIOBUS::WaitSignal(int pin, bool ast)

// We timed out waiting for the signal
return false;
}
}

0 comments on commit 2a498f9

Please sign in to comment.