swap tabs for spaces

This commit is contained in:
cornfeedhobo 2025-01-08 18:13:06 -06:00
parent 15dcc18aa9
commit 9af1966106
No known key found for this signature in database
GPG Key ID: 724357093F994B26
2 changed files with 6 additions and 6 deletions

View File

@ -193,7 +193,7 @@ void process_hid_queue_task(device_t *state) {
/* ... then we can remove it from the queue. Race conditions shouldn't happen [tm] */
if (succeeded)
queue_try_remove(&state->hid_queue_out, &packet);
queue_try_remove(&state->hid_queue_out, &packet);
}
/* Task that handles copying firmware from the other device to ours */

View File

@ -42,13 +42,13 @@ uint32_t crc32_iter(uint32_t crc, const uint8_t byte) {
/* TODO - use DMA sniffer's built-in CRC32 */
uint32_t calc_crc32(const uint8_t *s, size_t n) {
uint32_t crc = 0xffffffff;
uint32_t crc = 0xffffffff;
for(size_t i=0; i < n; i++) {
for(size_t i=0; i < n; i++) {
crc = crc32_iter(crc, s[i]);
}
}
return ~crc;
return ~crc;
}
uint32_t calculate_firmware_crc32(void) {
@ -195,7 +195,7 @@ bool validate_packet(uart_packet_t *packet) {
const enum packet_type_e ALLOWED_PACKETS[] = {
FLASH_LED_MSG,
GET_VAL_MSG,
GET_ALL_VALS_MSG,
GET_ALL_VALS_MSG,
SET_VAL_MSG,
WIPE_CONFIG_MSG,
SAVE_CONFIG_MSG,