Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Sep 9, 2021
1 parent 0dfd483 commit 68dc436
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 273 deletions.
9 changes: 2 additions & 7 deletions lwow/src/lwow/lwow.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,10 +650,7 @@ lwow_search_with_command_callback(lwow_t* const ow, const uint8_t cmd, size_t* c
}
func(ow, NULL, i, arg); /* Call with NULL rom_id parameter */
lwow_unprotect(ow, 1);

if (roms_found != NULL) {
*roms_found = i;
}
SET_NOT_NULL(roms_found, i); /* Set number of roms found */
if (res == lwowERRNODEV) { /* `No device` might not be an error, but simply no devices on bus */
res = lwowOK;
}
Expand Down Expand Up @@ -701,9 +698,7 @@ lwow_search_devices_with_command_raw(lwow_t* const ow, const uint8_t cmd, lwow_r
break;
}
}
if (roms_found != NULL) {
*roms_found = cnt;
}
SET_NOT_NULL(roms_found, cnt); /* Set number of roms found */
if (res == lwowERRNODEV && cnt > 0) {
res = lwowOK;
}
Expand Down
141 changes: 0 additions & 141 deletions lwow/src/system/ow_ll_stm32.c

This file was deleted.

125 changes: 0 additions & 125 deletions lwow/src/system/ow_ll_stm32_hal.c

This file was deleted.

0 comments on commit 68dc436

Please sign in to comment.