From 0fcba375c89db5ba418d519d8d12ca1ff8e660ac Mon Sep 17 00:00:00 2001 From: Sean Niu Date: Tue, 28 Apr 2026 19:47:22 -0700 Subject: [PATCH] fix: restore Intel Mac SMC temperature fallback The macOS SMC per-core fallback path switched to KeyIndexes[core], but still formatted it as an integer. That produced keys like TC48 instead of TC0C, so affected Intel Macs reported -1C for core temps. Format the index as a character to restore the TC0C/TC1C/... fallback keys. Assisted-by: OpenCode (GPT-5.5) --- src/osx/smc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/smc.cpp b/src/osx/smc.cpp index c972d29b..cddf6deb 100644 --- a/src/osx/smc.cpp +++ b/src/osx/smc.cpp @@ -101,7 +101,7 @@ namespace Cpu { long long result = getSMCTemp(key); if (result == -1) { // try again with C - snprintf(key, 5, "TC%1dC", KeyIndexes[core]); + snprintf(key, 5, "TC%1cC", KeyIndexes[core]); result = getSMCTemp(key); } return result;