mirror of
https://github.com/dnet/pySSTV.git
synced 2026-04-07 07:13:54 +00:00
gen_values: initialize local variable 'sample'
although in practice, this shouldn't happen -- I tried lowering the sample rate, and even at 10 samples/sec with Martin M1, it worked, and SSTV requires at least 4000 samples/sec (1 sample/sec raises an error though, if you'd like to try)
This commit is contained in:
parent
10c85423d4
commit
18dab4e0d3
1 changed files with 1 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ class SSTV(object):
|
|||
offset = 0
|
||||
samples = 0
|
||||
factor = 2 * pi / self.samples_per_sec
|
||||
sample = 0
|
||||
for freq, msec in self.gen_freq_bits():
|
||||
samples += spms * msec
|
||||
tx = int(samples)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue