didn't fully test 8502f91bb9
This commit is contained in:
Michael Davidsaver
2024-12-11 17:01:22 -08:00
parent 13f07cb095
commit 73c25448d0
+9 -3
View File
@@ -106,9 +106,6 @@ long dbLoadGroup(const char* jsonFilename, const char* macros) {
#if EPICS_VERSION_INT >= VERSION_INT(7, 0, 4, 0) \
|| (EPICS_VERSION_INT < VERSION_INT(7, 0, 0, 0) && EPICS_VERSION_INT >= VERSION_INT(3, 15, 8, 0))
if(getIocState() != iocVoid)
#else
if(interruptAccept)
#endif
{
fprintf(stderr,
ERL_ERROR " dbLoadGroup() not allowed in current IOC state (%d).\n"
@@ -117,6 +114,15 @@ long dbLoadGroup(const char* jsonFilename, const char* macros) {
);
return 1;
}
#else
if(interruptAccept)
{
fprintf(stderr,
ERL_ERROR " dbLoadGroup() not allowed in current IOC state.\n"
" Hint: Move before iocInit()\n");
return 1;
}
#endif
if (!jsonFilename || !jsonFilename[0]) {
fprintf(stderr, "%s\n"