Skip to content

Commit

Permalink
Update BitBucketConverter
Browse files Browse the repository at this point in the history
Default repeat set to 4
Option not to move sync bucked added
  • Loading branch information
henfri authored Dec 9, 2018
1 parent 9890d95 commit 076bff3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions BitBucketConverter
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ def findSyncPattern(szData):
print("Second sync bucket is in front")
print("Sync buckets: " + szData[-1:] + szData[0:1])
print("New data: " + syncData)

if (options.nomove):
syncData = szData
print("Option NoMove is set. Not moving the Sync Bucket")
return syncData

def decodeBuckets(buckets, data):
Expand Down Expand Up @@ -260,7 +262,9 @@ parser = OptionParser(usage=usage, version="%prog 0.3")
parser.add_option("-e", "--dev", action="store", type="string",
dest="device", help="device to send RfRaw B0 command")
parser.add_option("-r", "--repeat", action="store",
dest="repeat", default=20, help="number of times to repeat")
dest="repeat", default=4, help="number of times to repeat")
parser.add_option("-m", "--no-move", action="store_true",
dest="nomove", default=False, help="Do not move sync bucked")
parser.add_option("-d", "--debug", action="store_true",
dest="debug", default=False, help="show debug info")
parser.add_option("-v", "--verbose", action="store_true",
Expand Down

2 comments on commit 076bff3

@Portisch
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A number of 8 repeats is minimum. (My experience)

@degsmfan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have been using 1-4 without problems... I guess this is a vendor/hardware specific thing.

Please sign in to comment.