openfpgaloader.py: cast int to str

This commit is contained in:
Gwenhael Goavec-Merou 2021-07-14 17:50:50 +02:00
parent c984a4dbc8
commit 3706ed7416

View file

@ -19,7 +19,7 @@ class OpenFPGALoader(GenericProgrammer):
if cable: if cable:
self.cmd += ["--cable", cable] self.cmd += ["--cable", cable]
if freq: if freq:
self.cmd += ["--freq", int(freq)] self.cmd += ["--freq", str(int(freq))]
def load_bitstream(self, bitstream_file): def load_bitstream(self, bitstream_file):
self.cmd += ["--bitstream", bitstream_file] self.cmd += ["--bitstream", bitstream_file]