Commit 74210194 authored by Tiago Jorge's avatar Tiago Jorge
Browse files

If max retries of reading 'done' flag are reached, log error and fallback to SW.

parent 057a8276
......@@ -554,6 +554,10 @@ uint32_t count;
self.C_SourceFile.write(' }\n')
self.C_SourceFile.write(' LOGDEBUG(" - Read OK\\n");\n')
self.C_SourceFile.write(' }\n')
self.C_SourceFile.write(' if(!flag && count == RETRIES){\n')
self.C_SourceFile.write(' LOGERROR("Max Target read attempts reached.\\n");\n')
self.C_SourceFile.write(' return -1;\n')
self.C_SourceFile.write(' }\n')
self.C_SourceFile.write(' return 0;\n')
# pylint: disable=no-self-use
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment