Some documentation and formatting to LogTraceHitag

This commit is contained in:
Martin Holst Swende 2015-02-07 21:05:14 +01:00
commit 665775c844
2 changed files with 19 additions and 8 deletions

View file

@ -35,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) {