From 890a83166da068d767e90b8df3ab34090a89d4d0 Mon Sep 17 00:00:00 2001
From: Hubert <1701213518@sz.pku.edu.cn>
Date: Sun, 28 Apr 2024 10:50:06 +0800
Subject: [PATCH] hwdef: Fix MicoAir743 internal compass rotation

---
 libraries/AP_HAL_ChibiOS/hwdef/MicoAir743/hwdef.dat | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MicoAir743/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MicoAir743/hwdef.dat
index 3ebdccfd11ebb..78b8854cf1b4d 100644
--- a/libraries/AP_HAL_ChibiOS/hwdef/MicoAir743/hwdef.dat
+++ b/libraries/AP_HAL_ChibiOS/hwdef/MicoAir743/hwdef.dat
@@ -118,7 +118,7 @@ define HAL_BATT_CURR_SCALE 40.2
 define HAL_COMPASS_DISABLE_IST8310_INTERNAL_PROBE
 define HAL_PROBE_EXTERNAL_I2C_COMPASSES
 COMPASS IST8310 I2C:ALL_EXTERNAL:0x0E true  ROTATION_NONE
-COMPASS IST8310 I2C:0:0x0E false ROTATION_NONE
+COMPASS IST8310 I2C:ALL_INTERNAL:0x0E false ROTATION_YAW_90
 
 # barometers
 BARO DPS310 I2C:0:0x76
@@ -164,4 +164,4 @@ define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
 # setup for OSD
 define OSD_ENABLED 1
 define HAL_OSD_TYPE_DEFAULT 1
-ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
\ No newline at end of file
+ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin