Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Jul 6, 2023
1 parent 3b7f2be commit e43f680
Show file tree
Hide file tree
Showing 5 changed files with 775 additions and 771 deletions.
4 changes: 2 additions & 2 deletions armsrc/fpgaloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ static int bitparse_find_section(int bitstream_version, char section_name, uint3
current_length += get_from_fpga_stream(bitstream_version, compressed_fpga_stream, output_buffer) << 8;
current_length += get_from_fpga_stream(bitstream_version, compressed_fpga_stream, output_buffer) << 0;
numbytes += 4;
if (current_length > 300*1024) {
if (current_length > 300 * 1024) {
/* section e should never exceed about 300KB, if the length is too big limit it but still send the bitstream just in case */
current_length = 300*1024;
current_length = 300 * 1024;
}
break;
default: /* Two byte length field */
Expand Down
5 changes: 2 additions & 3 deletions client/src/cmdhw.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ static int CmdTimeout(const char *Cmd) {
uint32_t oldTimeout = uart_get_timeouts();

// timeout is not given/invalid, just show the current timeout then return
if(arg < 0) {
if (arg < 0) {
PrintAndLogEx(INFO, "Current communication timeout: %ums", oldTimeout);
return PM3_SUCCESS;
}
Expand All @@ -956,8 +956,7 @@ static int CmdTimeout(const char *Cmd) {
// UART_USB_CLIENT_RX_TIMEOUT_MS is considered as the minimum required timeout.
if (newTimeout < UART_USB_CLIENT_RX_TIMEOUT_MS) {
PrintAndLogEx(WARNING, "Timeout less than %ums might cause errors.", UART_USB_CLIENT_RX_TIMEOUT_MS);
}
else if(newTimeout > 5000) {
} else if (newTimeout > 5000) {
PrintAndLogEx(WARNING, "Timeout greater than 5000ms makes the client unresponsive.");
}
uart_reconfigure_timeouts(newTimeout);
Expand Down
Loading

0 comments on commit e43f680

Please sign in to comment.