mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
1 bug fix + code trimming
This commit is contained in:
parent
df51693f95
commit
712ebfa6df
4 changed files with 58 additions and 144 deletions
|
@ -1094,11 +1094,9 @@ void psk1TOpsk2(uint8_t *BitStream, size_t size)
|
|||
// from only transition waves are 1s to phase shifts change bit
|
||||
void psk2TOpsk1(uint8_t *BitStream, size_t size)
|
||||
{
|
||||
size_t i;
|
||||
uint8_t phase=BitStream[0];
|
||||
//uint8_t lastBit=BitStream[0];
|
||||
for (i=1; i<size; i++){
|
||||
if (phase!=BitStream[i]){
|
||||
uint8_t phase=0;
|
||||
for (size_t i=0; i<size; i++){
|
||||
if (BitStream[i]==1){
|
||||
phase ^=1;
|
||||
}
|
||||
BitStream[i]=phase;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue