Skip to content

Commit

Permalink
Fix missing arguments in generated code for send64+ in analyse script (
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsinclair authored and crankyoldgit committed Oct 20, 2019
1 parent 4c9d701 commit 75aa428
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tools/auto_analyse_raw_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def add_data_byte_code(self, bin_str, name="", ambles=None):
" k%sBitMark, k%sZeroSpace," % (name, name),
" %s, %s," % (lastmark, lastspace),
" data + pos, %d, // Bytes" % nbytes,
" k%sFreq);" % name,
" k%sFreq," % name,
" true, 0, 50);",
" pos += %d; // Adjust by how many bytes of data we sent" % nbytes])
return code

Expand Down
12 changes: 8 additions & 4 deletions tools/auto_analyse_raw_data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,8 @@ def test_unusual_gaps(self):
' kFOOBitMark, kFOOZeroSpace,\n'
' kFOOHdrMark, kFOOHdrSpace,\n'
' data + pos, 4, // Bytes\n'
' kFOOFreq);\n'
' kFOOFreq,\n'
' true, 0, 50);\n'
' pos += 4; // Adjust by how many bytes of data we sent\n'
' // Data Section #2\n'
' // e.g.\n'
Expand All @@ -589,7 +590,8 @@ def test_unusual_gaps(self):
' kFOOBitMark, kFOOZeroSpace,\n'
' kFOOHdrMark, kFOOHdrSpace,\n'
' data + pos, 4, // Bytes\n'
' kFOOFreq);\n'
' kFOOFreq,\n'
' true, 0, 50);\n'
' pos += 4; // Adjust by how many bytes of data we sent\n'
' // Data Section #3\n'
' // e.g.\n'
Expand All @@ -600,7 +602,8 @@ def test_unusual_gaps(self):
' kFOOBitMark, kFOOZeroSpace,\n'
' kFOOHdrMark, kFOOHdrSpace,\n'
' data + pos, 4, // Bytes\n'
' kFOOFreq);\n'
' kFOOFreq,\n'
' true, 0, 50);\n'
' pos += 4; // Adjust by how many bytes of data we sent\n'
' // Data Section #4\n'
' // e.g.\n'
Expand All @@ -611,7 +614,8 @@ def test_unusual_gaps(self):
' kFOOBitMark, kFOOZeroSpace,\n'
' kFOOHdrMark, kFOOHdrSpace,\n'
' data + pos, 4, // Bytes\n'
' kFOOFreq);\n'
' kFOOFreq,\n'
' true, 0, 50);\n'
' pos += 4; // Adjust by how many bytes of data we sent\n'
' }\n'
'}\n'
Expand Down

0 comments on commit 75aa428

Please sign in to comment.