mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-17 11:31:30 +01:00
set slave for m3 virtual
This commit is contained in:
@@ -720,8 +720,13 @@ void setADIFDefaults() {
|
|||||||
int checkCommandLineConfiguration() {
|
int checkCommandLineConfiguration() {
|
||||||
if (masterCommandLine != -1) {
|
if (masterCommandLine != -1) {
|
||||||
#ifdef VIRTUAL
|
#ifdef VIRTUAL
|
||||||
bus_w(SYSTEM_STATUS_REG,
|
if (masterCommandLine == 1) {
|
||||||
bus_r(SYSTEM_STATUS_REG) & ~SYSTEM_STATUS_SLV_BRD_DTCT_MSK);
|
bus_w(SYSTEM_STATUS_REG,
|
||||||
|
bus_r(SYSTEM_STATUS_REG) & ~SYSTEM_STATUS_SLV_BRD_DTCT_MSK);
|
||||||
|
} else {
|
||||||
|
bus_w(SYSTEM_STATUS_REG,
|
||||||
|
bus_r(SYSTEM_STATUS_REG) | SYSTEM_STATUS_SLV_BRD_DTCT_MSK);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
initError = FAIL;
|
initError = FAIL;
|
||||||
strcpy(initErrorMessage,
|
strcpy(initErrorMessage,
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
case 'i':
|
case 'i':
|
||||||
#if defined(EIGERD) || defined(GOTTHARDD) || defined(GOTTHARD2D) || \
|
#if defined(EIGERD) || defined(GOTTHARDD) || defined(GOTTHARD2D) || \
|
||||||
defined(JUNGFRAU)
|
defined(JUNGFRAUD)
|
||||||
LOG(logINFO, ("Ignoring config file\n"));
|
LOG(logINFO, ("Ignoring config file\n"));
|
||||||
ignoreConfigFileFlag = 1;
|
ignoreConfigFileFlag = 1;
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user