Skip to content

Commit

Permalink
fix aio temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
ligenxxxx committed May 11, 2024
1 parent 6ad1590 commit 2cd8c24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,9 @@ void TempDetect() {
#ifdef HDZERO_ECO
if (temp_new > 10)
temp_new -= 10;
#elif defined HDZERO_AIO
if (temp_new > 15)
temp_new -= 15;
#endif

temperature = temperature - (temperature >> 2) + temp_new;
Expand Down
1 change: 1 addition & 0 deletions targets/hdzero_aio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ build_flags =
${DM5680.build_flags}
-DHDZERO_AIO
-DUSE_TP9950
-DUSE_TEMPERATURE_SENSOR
-DUSE_USB_DET

0 comments on commit 2cd8c24

Please sign in to comment.