File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,13 @@ class ExtendedRequestSupport(_Base): # pylint: disable=too-many-public-methods
85
85
"""Extended request support."""
86
86
87
87
@staticmethod
88
- def _process_exception (resp , ** kwargs ):
88
+ def _process_exception (resp , ** kwargs ) -> dict :
89
89
"""Set internal process exception."""
90
90
if "slave" not in kwargs :
91
91
return {"message" : "Broadcast message, ignoring errors!!!" }
92
92
if isinstance (resp , ExceptionResponse ): # pylint: disable=else-if-used
93
93
return {
94
- "original_function_code" : f"{ resp .original_code } ({ hex (resp .original_code )} )" ,
94
+ "original_function_code" : f"{ resp .function_code - 0x80 } ({ hex (resp .function_code - 0x80 )} )" ,
95
95
"error_function_code" : f"{ resp .function_code } ({ hex (resp .function_code )} )" ,
96
96
"exception code" : resp .exception_code ,
97
97
"message" : ExceptionResponse .decode (resp .exception_code ),
You can’t perform that action at this time.
0 commit comments