Skip to content

Commit

Permalink
Merge pull request dmitrystu#50 from dmitrystu/fix/issue#46
Browse files Browse the repository at this point in the history
fix compilation with -Werror dmitrystu#46
  • Loading branch information
dmitrystu authored Jun 8, 2022
2 parents 2ebb4f5 + 5b45638 commit 0709360
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bootloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ static usbd_respond dfu_err_badreq(void) {
return usbd_fail;
}

#if (DFU_CAN_UPLOAD == _ENABLE)
static usbd_respond dfu_upload(usbd_device *dev, size_t blksize) {
switch (dfu_data.bState) {
case USB_DFU_STATE_DFU_IDLE:
Expand All @@ -125,6 +126,7 @@ static usbd_respond dfu_upload(usbd_device *dev, size_t blksize) {
return dfu_err_badreq();
}
}
#endif

static usbd_respond dfu_dnload(void *buf, size_t blksize) {
switch(dfu_data.bState) {
Expand Down

0 comments on commit 0709360

Please sign in to comment.