Skip to content

Commit 89fdbea

Browse files
committed
Fix bug in jt65_interleave
1 parent ddda8b3 commit 89fdbea

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Etherkit JTEncode
2-
version=1.0.0
2+
version=1.0.1
33
author=Jason Milldrum <milldrum@gmail.com>
44
maintainer=Jason Milldrum <milldrum@gmail.com>
55
sentence=Generate JT65, JT9, JT4, and WSPR symbols on your Arduino.

src/JTEncode.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -512,23 +512,13 @@ void JTEncode::jt65_interleave(uint8_t * s)
512512
{
513513
uint8_t i, j;
514514
uint8_t d[JT65_ENCODE_COUNT];
515-
uint8_t d1[7][9];
516515

517-
// Fill temp d1 array
516+
// Interleave
518517
for(i = 0; i < 9; i++)
519518
{
520519
for(j = 0; j < 7; j++)
521520
{
522-
d1[i][j] = s[(i * 7) + j];
523-
}
524-
}
525-
526-
// Interleave and translate back to 1D destination array
527-
for(i = 0; i < 7; i++)
528-
{
529-
for(j = 0; j < 9; j++)
530-
{
531-
d[(i * 9) + j] = d1[j][i];
521+
d[(j * 9) + i] = s[(i * 7) + j];
532522
}
533523
}
534524

0 commit comments

Comments
 (0)