jungfrau board 2 adc defines, full speed limitation for old boards

This commit is contained in:
2019-05-27 15:04:13 +02:00
parent 7fdab08256
commit 2c2fb7358c
7 changed files with 73 additions and 42 deletions

View File

@ -2007,6 +2007,13 @@ int set_speed(int file_des) {
FILE_LOG(logERROR,(mess));
}
#endif
#ifdef JUNGFRAUD
if (ret == OK && ind == CLOCK_DIVIDER && val == FULL_SPEED && getHardwareVersionNumber() != BOARD_VERSION_2_VAL) {
ret = FAIL;
strcpy(mess, "Full speed not implemented for this board version.\n");
FILE_LOG(logERROR,(mess));
}
#endif
if (ret == OK) {
// set