kasjer commented on code in PR #3471:
URL: https://github.com/apache/mynewt-core/pull/3471#discussion_r2223079346


##########
hw/mcu/ambiq/apollo2/src/hal_system.c:
##########
@@ -48,7 +48,32 @@ hal_system_reset(void)
 enum hal_reset_reason
 hal_reset_cause(void)
 {
-    enum hal_reset_reason reason = 0;
+    static enum hal_reset_reason reason;
+    uint32_t reg;
+
+    if (reason) {
+        return reason;
+    }
+
+    // Read STAT register

Review Comment:
   Comment should be inside `/*` `*/`. Same for line 76



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to