Skip to content

Commit

Permalink
Fixed issue #440
Browse files Browse the repository at this point in the history
  • Loading branch information
bropat committed Sep 10, 2024
1 parent 5bb6804 commit e76479b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ 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 && result.command_type !== CommandType.CMD_STORAGE_INFO_HB3) ||
(result.return_code !== ErrorCode.ERROR_DEV_BUSY && result.command_type === CommandType.CMD_STORAGE_INFO_HB3)) {
(result.return_code !== 0 && 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 e76479b

Please sign in to comment.