Skip to content

Commit

Permalink
Improve temperature lines in TinyPilot logs (#1542)
Browse files Browse the repository at this point in the history
Resolves #1488

Runs a simple text replacement to make the output of `vcgencmd
measure_temp` more readable.
<a data-ca-tag
href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1542"><img
src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review
on CodeApprove" /></a>
  • Loading branch information
cghague authored Aug 9, 2023
1 parent 33b4d9c commit 48f63f8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ print_info "Checking if mouse jiggler is enabled..."
} >> "${LOG_FILE}"

print_info "Checking temperature..."
printf "%s\n" "$(vcgencmd measure_temp)" >> "${LOG_FILE}"
{
vcgencmd measure_temp | sed 's/temp=/CPU Temperature: /g'
} >> "${LOG_FILE}"

print_info "Checking throttled state..."
printf "%s\n\n" "$(vcgencmd get_throttled)" >> "${LOG_FILE}"
Expand Down

0 comments on commit 48f63f8

Please sign in to comment.