projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better Linux compilation compability
[proxmark3-svn]
/
armsrc
/
BigBuf.c
diff --git
a/armsrc/BigBuf.c
b/armsrc/BigBuf.c
index 6b52a5894545beaa352273aeea608945a6ada7b0..851cf390e795faf4c6d3b3f58411e6d9966a2d5b 100644
(file)
--- a/
armsrc/BigBuf.c
+++ b/
armsrc/BigBuf.c
@@
-50,11
+50,21
@@
uint8_t *BigBuf_get_EM_addr(void)
// clear ALL of BigBuf
void BigBuf_Clear(void)
// clear ALL of BigBuf
void BigBuf_Clear(void)
+{
+ BigBuf_Clear_ext(true);
+}
+// clear ALL of BigBuf
+void BigBuf_Clear_ext(bool verbose)
{
memset(BigBuf,0,BIGBUF_SIZE);
{
memset(BigBuf,0,BIGBUF_SIZE);
- Dbprintf("Buffer cleared (%i bytes)",BIGBUF_SIZE);
+ if (verbose)
+ Dbprintf("Buffer cleared (%i bytes)",BIGBUF_SIZE);
}
}
+void BigBuf_Clear_keep_EM(void)
+{
+ memset(BigBuf,0,BigBuf_hi);
+}
// allocate a chunk of memory from BigBuf. We allocate high memory first. The unallocated memory
// at the beginning of BigBuf is always for traces/samples
// allocate a chunk of memory from BigBuf. We allocate high memory first. The unallocated memory
// at the beginning of BigBuf is always for traces/samples
@@
-178,7
+188,7
@@
bool RAMFUNC LogTrace(const uint8_t *btBytes, uint16_t iLen, uint32_t timestamp_
traceLen += iLen;
// parity bytes
traceLen += iLen;
// parity bytes
- if (
iLen
!= 0) {
+ if (
num_paritybytes
!= 0) {
if (parity != NULL) {
memcpy(trace + traceLen, parity, num_paritybytes);
} else {
if (parity != NULL) {
memcpy(trace + traceLen, parity, num_paritybytes);
} else {
Impressum
,
Datenschutz