Ver Fonte

Fix build with SDK 85

Ivan Podogov há 9 meses atrás
pai
commit
49269430df
4 ficheiros alterados com 7 adições e 3 exclusões
  1. 4 0
      CHANGELOG.md
  2. 1 1
      application.fam
  3. 1 1
      tracking/imu/lsm6ds3trc.c
  4. 1 1
      tracking/imu/lsm6dso.c

+ 4 - 0
CHANGELOG.md

@@ -1,5 +1,9 @@
 # Changelog
 # Changelog
 
 
+## v1.4 (2025-04-11)
+
+**Fix build with SDK 85**
+
 ## v1.3 (2024-08-15)
 ## v1.3 (2024-08-15)
 
 
 **Fix new firmwares compatibility**
 **Fix new firmwares compatibility**

+ 1 - 1
application.fam

@@ -6,7 +6,7 @@ App(
     stack_size=10 * 1024,
     stack_size=10 * 1024,
     fap_category="GPIO",
     fap_category="GPIO",
     fap_icon="icon.png",
     fap_icon="icon.png",
-    fap_version="1.3",
+    fap_version="1.4",
     fap_libs=["ble_profile"],
     fap_libs=["ble_profile"],
     sources=["*.c", "*.cc"],
     sources=["*.c", "*.cc"],
     fap_private_libs=[
     fap_private_libs=[

+ 1 - 1
tracking/imu/lsm6ds3trc.c

@@ -29,7 +29,7 @@ bool lsm6ds3trc_begin() {
     lsm6ds3trc_ctx.write_reg = lsm6ds3trc_write_i2c;
     lsm6ds3trc_ctx.write_reg = lsm6ds3trc_write_i2c;
     lsm6ds3trc_ctx.read_reg = lsm6ds3trc_read_i2c;
     lsm6ds3trc_ctx.read_reg = lsm6ds3trc_read_i2c;
     lsm6ds3trc_ctx.mdelay = furi_delay_ms;
     lsm6ds3trc_ctx.mdelay = furi_delay_ms;
-    lsm6ds3trc_ctx.handle = &furi_hal_i2c_handle_external;
+    lsm6ds3trc_ctx.handle = (void*)&furi_hal_i2c_handle_external;
 
 
     uint8_t whoami;
     uint8_t whoami;
     lsm6ds3tr_c_device_id_get(&lsm6ds3trc_ctx, &whoami);
     lsm6ds3tr_c_device_id_get(&lsm6ds3trc_ctx, &whoami);

+ 1 - 1
tracking/imu/lsm6dso.c

@@ -29,7 +29,7 @@ bool lsm6dso_begin() {
     lsm6dso_ctx.write_reg = lsm6dso_write_i2c;
     lsm6dso_ctx.write_reg = lsm6dso_write_i2c;
     lsm6dso_ctx.read_reg = lsm6dso_read_i2c;
     lsm6dso_ctx.read_reg = lsm6dso_read_i2c;
     lsm6dso_ctx.mdelay = furi_delay_ms;
     lsm6dso_ctx.mdelay = furi_delay_ms;
-    lsm6dso_ctx.handle = &furi_hal_i2c_handle_external;
+    lsm6dso_ctx.handle = (void*)&furi_hal_i2c_handle_external;
 
 
     uint8_t whoami;
     uint8_t whoami;
     lsm6dso_device_id_get(&lsm6dso_ctx, &whoami);
     lsm6dso_device_id_get(&lsm6dso_ctx, &whoami);