This thread mentions having the master read the DFU Revision Characteristic to determine the DFU revision. I've based my DFU and application off the dfu_dual_bank_ble_310_pca10028, and bel_app_hrs examples, respectively.
Both of these examples have DFU_REV_MAJOR, DFU_REV_MINOR and DFU_REVISION defined in their main.c files (they may not match), and use these to set the value of the DFU Revision Characteristic - which may be different if the application is running or if the DFU is running.
When my application is running the DFU_REVISION is based on what is defined in the main.c of the application code. After writing to the dfu control point, and switching to the DFU's code, DFU_REVISION is now is defined in the dfu's main.c. I do not want a "hard" definition of the DFU_REVISION in my main application. I want the application to read the DFU version from the DFU code.
How can I makethe application read the DFU version from the DFU, and not rely on the #define DFU_REV_MAJOR, DFU_REV_MINOR and DFU_REVISION in my application's main.c file?