Fix tests (#698)

* fix firmwareversion to reqd version as fw version cannot be 0 for virtual
This commit is contained in:
Dhanya Thattil
2023-03-28 15:22:36 +02:00
committed by GitHub
parent 500442fd6b
commit 7e01095684
6 changed files with 7 additions and 6 deletions

View File

@ -250,7 +250,7 @@ void getServerVersion(char *version) { strcpy(version, APIMYTHEN3); }
u_int64_t getFirmwareVersion() {
#ifdef VIRTUAL
return 0;
return REQRD_FRMWRE_VRSN;
#endif
return ((bus_r(FPGA_VERSION_REG) & FPGA_COMPILATION_DATE_MSK) >>
FPGA_COMPILATION_DATE_OFST);