projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ADD @pwpiwi 's fixes for "HF 14B" commands.
[proxmark3-svn]
/
armsrc
/
util.c
diff --git
a/armsrc/util.c
b/armsrc/util.c
index 674f1b91f5ef76d129fa3b200eeb0605ef49b364..74fba94b764db748cf6a377ba23b96f5d06bc304 100644
(file)
--- a/
armsrc/util.c
+++ b/
armsrc/util.c
@@
-12,6
+12,7
@@
#include "util.h"
#include "string.h"
#include "apps.h"
+#include "BigBuf.h"
@@
-34,7
+35,7
@@
void print_result(char *name, uint8_t *buf, size_t len) {
}
size_t nbytes(size_t nbits) {
- return (nbits
/8)+((nbits%8)>
0);
+ return (nbits
>> 3)+((nbits % 8) >
0);
}
uint32_t SwapBits(uint32_t value, int nrbits) {
@@
-428,4
+429,3
@@
uint32_t RAMFUNC GetCountSspClk(){
}
}
-
Impressum
,
Datenschutz