-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few requests for changes.
if (!isPayloadLengthValid(response.getPayload().length)) { | ||
logger.error("Invalid payload length for this object type {}: {}", this.stateType.getObjectType(), | ||
if (response.getPayload().length != this.stateType.getPayloadLength(isExtended())) { | ||
logger.error("Invalid payload length for this state type {}: {}", this.stateType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a warn instead of an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The level hasn't changed in this PR, it was always an error. But I can change it, if you wish.
stateType = iterator.nextOfType(TroubleState.class, "trouble state type"); | ||
break; | ||
case TROUBLE_MEMORY: | ||
stateType = iterator.nextOfType(TroubleMemoryState.class, "trouble mamory state type"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be "memory" instead of "mamory" ?
@@ -0,0 +1,119 @@ | |||
/** | |||
* Copyright (c) 2010-2016 by the respective copyright holders. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2017
JAMMED_ACU100(0x21, 39, 24, 2), | ||
LCD_RESTART(0x21, 39, 26, 1), | ||
EXPANDER_RESTART(0x21, 39, 27, 8), | ||
// GSM_CODE(0x21, 39, 35, 2), not an on/off state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused/commented code.
@@ -0,0 +1,113 @@ | |||
/** | |||
* Copyright (c) 2010-2016 by the respective copyright holders. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2017
EXPANDER_OVERLOAD(0x1c, 26, 16, 8), | ||
JAMMED_ACU100(0x1c, 26, 24, 2), | ||
// part 3 | ||
// JAM_LEVEL(0x1d, 60, 0, 15), not an on/off state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused/commented code.
Hey, I made changes for all requests except for the first one, for which I added a comment. |
Cool, thanks! |
This PR introduces support for detailed Integra troubles. It allows defining items that reflect various troubles in Integra alarm system.