mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
style
This commit is contained in:
parent
82e71d7815
commit
58d8fa0e3b
1 changed files with 2 additions and 2 deletions
|
@ -481,8 +481,8 @@ void askAmp(uint8_t *bits, size_t size) {
|
||||||
uint32_t manchesterEncode2Bytes(uint16_t datain) {
|
uint32_t manchesterEncode2Bytes(uint16_t datain) {
|
||||||
uint32_t output = 0;
|
uint32_t output = 0;
|
||||||
for (uint8_t i = 0; i < 16; i++) {
|
for (uint8_t i = 0; i < 16; i++) {
|
||||||
uint8_t curBit = (datain >> (15 - i) & 1);
|
uint8_t b = (datain >> (15 - i) & 1);
|
||||||
output |= (1 << (((15 - i) * 2) + curBit));
|
output |= (1 << (((15 - i) * 2) + b));
|
||||||
}
|
}
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue