Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Add CPU temperature monitoring.
  • Loading branch information
Extrems committed Jun 13, 2020
1 parent f72c7b4 commit 12abb72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cube/swiss/source/gui/FrameBufferMagic.c
Expand Up @@ -1964,6 +1964,11 @@ static void *videoUpdate(void *videoEventQueue) {
/*sprintf(fps, "fps %i", framerate);
drawString(10, 10, fps, 1.0f, false, (GXColor){255,255,255,255});*/

s8 cputemp = SYS_GetCoreTemperature();
if(cputemp >= 0) {
sprintf(fps, "%i\260C", cputemp);
drawString(390, 33, fps, 0.55f, false, (GXColor){255,255,255,255});
}
time_t curtime;
time(&curtime);
struct tm *info = localtime( &curtime );
Expand Down

0 comments on commit 12abb72

Please sign in to comment.