mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
Reduce some var scopes
This commit is contained in:
parent
ac6b0ec1ce
commit
732bc766f9
52 changed files with 318 additions and 409 deletions
|
@ -114,7 +114,6 @@ static void Fatal(void) {
|
|||
void UsbPacketReceived(uint8_t *packet, int len) {
|
||||
int i, dont_ack = 0;
|
||||
PacketCommandOLD *c = (PacketCommandOLD *)packet;
|
||||
volatile uint32_t *p;
|
||||
|
||||
//if ( len != sizeof(PacketCommandOLD`)) Fatal();
|
||||
|
||||
|
@ -136,7 +135,7 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
|||
/* The temporary write buffer of the embedded flash controller is mapped to the
|
||||
* whole memory region, only the last 8 bits are decoded.
|
||||
*/
|
||||
p = (volatile uint32_t *)&_flash_start;
|
||||
volatile uint32_t *p = (volatile uint32_t *)&_flash_start;
|
||||
for (i = 0; i < 12; i++)
|
||||
p[i + arg0] = c->d.asDwords[i];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue