projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make CPPCheck tool happy by altering the program flow in the low level keyboard examp...
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
MassStorage
/
Lib
/
DataflashManager.c
diff --git
a/Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c
b/Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c
index
287676f
..
90b4bdb
100644
(file)
--- a/
Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c
+++ b/
Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
1
.
+ Copyright (C) Dean Camera, 201
2
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
1
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
2
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-155,7
+155,7
@@
void DataflashManager_WriteBlocks(const uint32_t BlockAddress,
return;
}
return;
}
- /* Decrement the blocks remaining counter
and reset the sub block counter
*/
+ /* Decrement the blocks remaining counter */
TotalBlocks--;
}
TotalBlocks--;
}
@@
-352,7
+352,7
@@
void DataflashManager_WriteBlocks_RAM(const uint32_t BlockAddress,
/* Send the Dataflash buffer write command */
Dataflash_ToggleSelectedChipCS();
/* Send the Dataflash buffer write command */
Dataflash_ToggleSelectedChipCS();
- Dataflash_SendByte(DF_CMD_BUFF1WRITE);
+ Dataflash_SendByte(
UsingSecondBuffer ? DF_CMD_BUFF2WRITE :
DF_CMD_BUFF1WRITE);
Dataflash_SendAddressBytes(0, 0);
}
Dataflash_SendAddressBytes(0, 0);
}
@@
-367,7
+367,7
@@
void DataflashManager_WriteBlocks_RAM(const uint32_t BlockAddress,
BytesInBlockDiv16++;
}
BytesInBlockDiv16++;
}
- /* Decrement the blocks remaining counter
and reset the sub block counter
*/
+ /* Decrement the blocks remaining counter */
TotalBlocks--;
}
TotalBlocks--;
}