Skip to content

Commit

Permalink
Fixed issue #436
Browse files Browse the repository at this point in the history
  • Loading branch information
bropat committed Sep 8, 2024
1 parent afe7a19 commit 035d458
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/main.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ export class euSec extends utils.Adapter {
}

callback();
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
callback();
}
Expand Down Expand Up @@ -1553,7 +1554,8 @@ export class euSec extends utils.Adapter {
}

private async onStationCommandResult(station: Station, result: CommandResult): Promise<void> {
if (result.return_code !== 0 && result.command_type !== CommandType.P2P_QUERY_STATUS_IN_LOCK) {
if ((result.return_code !== 0 && result.command_type !== CommandType.P2P_QUERY_STATUS_IN_LOCK && result.command_type !== CommandType.CMD_STORAGE_INFO_HB3) ||
(result.return_code !== ErrorCode.ERROR_DEV_BUSY && result.command_type === CommandType.CMD_STORAGE_INFO_HB3)) {
this.logger.error(`Station: ${station.getSerial()} command ${CommandType[result.command_type]} failed with error: ${ErrorCode[result.return_code]} (${result.return_code})`);
}
}
Expand Down

0 comments on commit 035d458

Please sign in to comment.