openfpgaloader: improves freq conversion type

This commit is contained in:
Gwenhael Goavec-Merou 2021-07-17 17:02:22 +02:00
parent e0d5a7bff5
commit e3f577e0be
1 changed files with 1 additions and 1 deletions

View File

@ -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]