aboutsummaryrefslogtreecommitdiff
path: root/Bootloaders/DFU
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-11-29 05:19:41 +0000
committerDean Camera <[email protected]>2009-11-29 05:19:41 +0000
commit414b92e8123b9163015fb99ec286439275b000e8 (patch)
tree4cb44799143cd511fd7e6a7045753811b32ae28c /Bootloaders/DFU
parent958d28d05dcf29530cc552ba75b53fc41bd89c7e (diff)
downloadqmk_firmware-414b92e8123b9163015fb99ec286439275b000e8.tar.gz
qmk_firmware-414b92e8123b9163015fb99ec286439275b000e8.zip
Add to the existing CDC Class Driver's CreateStream() function documentation to explicitly state that the created streams are bidirectional.
Diffstat (limited to 'Bootloaders/DFU')
-rw-r--r--Bootloaders/DFU/BootloaderDFU.c8
-rw-r--r--Bootloaders/DFU/BootloaderDFU.h2
2 files changed, 3 insertions, 7 deletions
diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c
index 71b37ea68d..4184b190ca 100644
--- a/Bootloaders/DFU/BootloaderDFU.c
+++ b/Bootloaders/DFU/BootloaderDFU.c
@@ -690,11 +690,7 @@ static void ProcessReadCommand(void)
uint8_t DataIndexToRead = SentCommand.Data[1];
if (IS_ONEBYTE_COMMAND(SentCommand.Data, 0x00)) // Read bootloader info
- {
- ResponseByte = BootloaderInfo[DataIndexToRead];
- }
+ ResponseByte = BootloaderInfo[DataIndexToRead];
else if (IS_ONEBYTE_COMMAND(SentCommand.Data, 0x01)) // Read signature byte
- {
- ResponseByte = SignatureInfo[DataIndexToRead - 0x30];
- }
+ ResponseByte = SignatureInfo[DataIndexToRead - 0x30];
}
diff --git a/Bootloaders/DFU/BootloaderDFU.h b/Bootloaders/DFU/BootloaderDFU.h
index a4eb235d60..c711e43783 100644
--- a/Bootloaders/DFU/BootloaderDFU.h
+++ b/Bootloaders/DFU/BootloaderDFU.h
@@ -55,7 +55,7 @@
* can protect the AVR's firmware from being dumped from a secured AVR. When false, memory operations are
* allowed at any time.
*/
- #define SECURE_MODE false
+ #define SECURE_MODE false
/** Major bootloader version number. */
#define BOOTLOADER_VERSION_MINOR 2