Skip to content

Commit

Permalink
deprecated: @setCold(true);
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane authored Oct 22, 2024
1 parent 36d4338 commit 450ca66
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions imports/panic.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ const log = @import("log");

/// panic handler for esp-idf
pub fn panic(msg: []const u8, _: ?*@import("std").builtin.StackTrace, _: ?usize) noreturn {
@setCold(true);

sys.esp_log_write(log.default_level, "panic_handler", "PANIC: caused by %s - timestamp: %ul\n", msg.ptr, sys.esp_log_system_timestamp());

//TODO: get the stack trace and print it!
Expand Down

0 comments on commit 450ca66

Please sign in to comment.