CPU: ensures tempSensor accepts string only

Fixes #2202
This commit is contained in:
Carter Li
2026-02-26 08:55:53 +08:00
parent 418c7eecc7
commit 27b474f205
+1 -1
View File
@@ -136,7 +136,7 @@ void ffParseCPUJsonObject(FFCPUOptions* options, yyjson_val* module)
if (unsafe_yyjson_equals_str(key, "tempSensor"))
{
ffStrbufSetS(&options->tempSensor, unsafe_yyjson_get_str(val));
ffStrbufSetJsonVal(&options->tempSensor, val);
continue;
}