openfpgaloader: improves freq conversion type
This commit is contained in:
parent
e0d5a7bff5
commit
e3f577e0be
|
@ -19,7 +19,7 @@ class OpenFPGALoader(GenericProgrammer):
|
|||
if cable:
|
||||
self.cmd += ["--cable", cable]
|
||||
if freq:
|
||||
self.cmd += ["--freq", str(int(freq))]
|
||||
self.cmd += ["--freq", str(int(float(freq)))]
|
||||
|
||||
def load_bitstream(self, bitstream_file):
|
||||
self.cmd += ["--bitstream", bitstream_file]
|
||||
|
|
Loading…
Reference in New Issue