Skip to content

Commit

Permalink
Fix SonarQube warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Sep 7, 2023
1 parent 8c57381 commit 85edda5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
4 changes: 2 additions & 2 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) {
spdlog::trace("DELAYING for " + to_string(SCSI_DELAY_SEND_DATA_DAYNAPORT_US) + " after " +
to_string((int)delay_after_bytes) + " bytes");
to_string(delay_after_bytes) + " 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) {
spdlog::trace("DELAYING for " + to_string(SCSI_DELAY_SEND_DATA_DAYNAPORT_US) + " after " +
to_string((int)delay_after_bytes) + " bytes");
to_string(delay_after_bytes) + " bytes");
SysTimer::SleepUsec(SCSI_DELAY_SEND_DATA_DAYNAPORT_US);
}

Expand Down

0 comments on commit 85edda5

Please sign in to comment.