mythen3: wrong hardware version number, so it didnt reboot after programfpga

This commit is contained in:
2020-09-03 17:04:58 +02:00
parent 89f0479318
commit 891b8dbd2c
3 changed files with 4 additions and 4 deletions

View File

@ -249,15 +249,15 @@ u_int16_t getHardwareVersionNumber() {
#ifdef VIRTUAL
return 0;
#endif
return bus_r(MCB_SERIAL_NO_REG);
return ((bus_r(MCB_SERIAL_NO_REG) & MCB_SERIAL_NO_VRSN_MSK) >>
MCB_SERIAL_NO_VRSN_OFST);
}
u_int32_t getDetectorNumber() {
#ifdef VIRTUAL
return 0;
#endif
return ((bus_r(MCB_SERIAL_NO_REG) & MCB_SERIAL_NO_VRSN_MSK) >>
MCB_SERIAL_NO_VRSN_OFST);
return bus_r(MCB_SERIAL_NO_REG);
}
u_int64_t getDetectorMAC() {