make style
This commit is contained in:
71 files changed
+588
-571
No files matched your search
@@ -106,7 +106,7 @@ uint16_t Flash_WriteData(uint32_t address, uint8_t *in, uint16_t len) {
|
||||
|
||||
// assumes valid start 256 based 00 address
|
||||
// Start writing flash from the specified location.
|
||||
// Write FLASH_MEM_BLOCK_SIZE bytes at most each time.
|
||||
// Write FLASH_MEM_BLOCK_SIZE bytes at most each time.
|
||||
// If the writing is nearly complete, write it as bytes_remaining bytes.
|
||||
uint16_t Flash_Write(uint32_t address, uint8_t *in, uint16_t len) {
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
// How many times the async write helpers spin on the IN endpoint before they give up on the host.
|
||||
// How many times the async write helpers spin on the IN endpoint before they give up on the host.
|
||||
// usb_check() stays true for as long as the device is enumerated
|
||||
#define ASYNC_WRITE_SPIN_LIMIT 0x00020000
|
||||
|
||||
|
||||
@@ -668,7 +668,7 @@ int async_usb_write_stop(void) {
|
||||
}
|
||||
}
|
||||
|
||||
// Send a final packet. When the local buffer still holds data this flushes it,
|
||||
// Send a final packet. When the local buffer still holds data this flushes it,
|
||||
// if empty, send a zero length packet.
|
||||
if (!async_usb_write_requestWrite()) {
|
||||
return PM3_EIO;
|
||||
|
||||
Reference in new issue
Block a user