|
@@ -25,10 +25,10 @@ class firingWidget;
|
|
|
class ErrorBlastStatusList {
|
|
|
public:
|
|
|
// Error code constants
|
|
|
- static const int DEV_ERROR = 0xA0; // Device exception
|
|
|
- static const int BUS_SHORT = 0xA1; // Bus short circuit
|
|
|
- static const int BUS_VOLTAGE_ERR = 0xA2; // Bus voltage abnormal
|
|
|
- static const int DET_OFFLINE_ERR = 0xA3; // Detonator offline
|
|
|
+ static const int DEV_ERROR; // Device exception
|
|
|
+ static const int BUS_SHORT; // Bus short circuit
|
|
|
+ static const int BUS_VOLTAGE_ERR; // Bus voltage abnormal
|
|
|
+ static const int DET_OFFLINE_ERR; // Detonator offline
|
|
|
|
|
|
// Check if a status code exists in the error list
|
|
|
static bool isErrorStatus(int code) { return getErrorMap().find(code) != getErrorMap().end(); }
|
|
@@ -51,8 +51,6 @@ class ErrorBlastStatusList {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-// The map will be initialized in the cpp file
|
|
|
-
|
|
|
class firingWidget : public QWidget {
|
|
|
Q_OBJECT
|
|
|
|