Skip to content

Commit 0bc4292

Browse files
committed
no need for newlines in asm here
1 parent 6d5627c commit 0bc4292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp8266/core_esp8266_postmortem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void crash_system_prepare_rst_info(rst_info *rst_info, uint32_t user_reset_reaso
120120
// at this point, check SDK that may have a prepared reset struct
121121
if (user_reset_reason == REASON_DEFAULT_RST)
122122
{
123-
__asm__ __volatile__("memw\n\t" ::: "memory");
123+
__asm__ __volatile__("memw" ::: "memory");
124124
memcpy(rst_info, rtc_sys, sizeof(*rst_info));
125125
switch (rst_info->reason) {
126126
case REASON_SOFT_WDT_RST:
@@ -152,7 +152,7 @@ void crash_system_prepare_rst_info(rst_info *rst_info, uint32_t user_reset_reaso
152152
// make sure our modifications persist on reboot
153153
memcpy(rtc_sys, rst_info,
154154
sizeof(rst_info->reason) + sizeof(rst_info->exccause));
155-
__asm__ __volatile__("memw\n\t" ::: "memory");
155+
__asm__ __volatile__("memw" ::: "memory");
156156
}
157157

158158
} // namespace

0 commit comments

Comments
 (0)