mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-22 07:02:29 +00:00
SAIL CArd warnings
Don't display in dialog when in nogui mode. Write to terminal
This commit is contained in:
parent
30793b55b0
commit
aa7f18eaa2
@ -17,6 +17,7 @@ import Acquisition.DaqSystem;
|
||||
import Acquisition.AudioDataQueue;
|
||||
import PamController.PamControlledUnitSettings;
|
||||
import PamController.PamController;
|
||||
import PamController.PamGUIManager;
|
||||
import PamController.PamSettingManager;
|
||||
import PamController.PamSettings;
|
||||
import PamDetection.RawDataUnit;
|
||||
@ -192,7 +193,12 @@ public class SmruDaqSystem extends DaqSystem implements PamSettings {
|
||||
+ " in another instance of PAMGuard. \n"
|
||||
+ "Check that no other instances of PAMGuard are open and try again. \nIf no other instances of PAMGuard are open "
|
||||
+ "then you should cycle the power on the card(s) and restart PAMGuard");
|
||||
if (PamGUIManager.getGUIType() == PamGUIManager.NOGUI) {
|
||||
System.out.println(msg);
|
||||
}
|
||||
else {
|
||||
JOptionPane.showMessageDialog(daqControl.getGuiFrame(), msg, daqControl.getUnitName() + " Error", JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
PamController.getInstance().stopLater();
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user