Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 815d1f6

Browse files
committed
readability suggestion from the likely less sleep deprived
1 parent f61e9d2 commit 815d1f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

host/hackrf-tools/src/hackrf_transfer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ int rx_callback(hackrf_transfer* transfer) {
350350
if (receive_wav) {
351351
/* convert .wav contents from signed to unsigned */
352352
for (i = 0; i < bytes_to_write; i++) {
353-
*(transfer->buffer + i) ^= (uint8_t)0x80;
353+
transfer->buffer[i] ^= (uint8_t)0x80;
354354
}
355355
}
356356
bytes_written = fwrite(transfer->buffer, 1, bytes_to_write, fd);

0 commit comments

Comments
 (0)