diff --git a/host/xmosdfu/xmosdfu.cpp b/host/xmosdfu/xmosdfu.cpp index 44093a0f..f573f6b0 100644 --- a/host/xmosdfu/xmosdfu.cpp +++ b/host/xmosdfu/xmosdfu.cpp @@ -318,6 +318,11 @@ int read_dfu_image(char *file) } break; } + else if (numBytes < 0) + { + fprintf(stderr,"dfu_upload error (%d)\n", numBytes); + break; + } fwrite(block_data, 1, block_size, outFile); block_count++; }