remove masking of s7 protocols errors (#322)

This commit is contained in:
Houlton McGuinn 2021-07-30 12:13:55 -04:00 зафіксовано GitHub
джерело 904ea05789
коміт a70b93322f
Не вдалося знайти GPG ключ що відповідає даному підпису
Ідентифікатор GPG ключа: 4AEE18F83AFDEB23

@ -57,14 +57,14 @@ func GetS7Banner(logStruct *S7Log, connection net.Conn, reconnect ReconnectFunct
// Make Module Identification request
moduleIdentificationResponse, err := readRequest(connection, S7_SZL_MODULE_IDENTIFICATION)
if err != nil {
return nil // mask errors after detecting IsS7
return err
}
parseModuleIdentificatioNRequest(logStruct, &moduleIdentificationResponse)
// Make Component Identification request
componentIdentificationResponse, err := readRequest(connection, S7_SZL_COMPONENT_IDENTIFICATION)
if err != nil {
return nil // mask errors after detecting IsS7
return err
}
parseComponentIdentificationResponse(logStruct, &componentIdentificationResponse)