Просмотр исходного кода

Bump RPC version with fixed BLE (#1071)

* furi_hal_bt: change furi_assert -> furi_check
* battery_service: change log level
* protobuf: update submodule, bump RPC version
gornekich 3 лет назад
Родитель
Сommit
f714f82520

+ 1 - 1
assets/compiled/protobuf_version.h

@@ -1,3 +1,3 @@
 #pragma once
 #define PROTOBUF_MAJOR_VERSION 0
-#define PROTOBUF_MINOR_VERSION 2
+#define PROTOBUF_MINOR_VERSION 3

+ 1 - 1
assets/protobuf

@@ -1 +1 @@
-Subproject commit 232e7e9a50b12a95f950fabb515204775e51b04a
+Subproject commit cd11b029ac21462ea8a7615126d0a29e087c2908

+ 1 - 1
firmware/targets/f7/ble_glue/battery_service.c

@@ -71,7 +71,7 @@ bool battery_svc_update_level(uint8_t battery_charge) {
         return false;
     }
     // Update battery level characteristic
-    FURI_LOG_I(TAG, "Updating battery level characteristic");
+    FURI_LOG_D(TAG, "Updating battery level characteristic");
     tBleStatus result = aci_gatt_update_char_value(
         battery_svc->svc_handle, battery_svc->char_level_handle, 0, 1, &battery_charge);
     if(result) {

+ 2 - 2
firmware/targets/f7/furi_hal/furi_hal_bt.c

@@ -83,7 +83,7 @@ void furi_hal_bt_init() {
 
     // Explicitly tell that we are in charge of CLK48 domain
     if(!LL_HSEM_IsSemaphoreLocked(HSEM, CFG_HW_CLK48_CONFIG_SEMID)) {
-        furi_assert(LL_HSEM_1StepLock(HSEM, CFG_HW_CLK48_CONFIG_SEMID) == 0);
+        furi_check(LL_HSEM_1StepLock(HSEM, CFG_HW_CLK48_CONFIG_SEMID) == 0);
     }
 
     // Start Core2
@@ -125,7 +125,7 @@ bool furi_hal_bt_start_radio_stack() {
 
     // Explicitly tell that we are in charge of CLK48 domain
     if(!LL_HSEM_IsSemaphoreLocked(HSEM, CFG_HW_CLK48_CONFIG_SEMID)) {
-        furi_assert(LL_HSEM_1StepLock(HSEM, CFG_HW_CLK48_CONFIG_SEMID) == 0);
+        furi_check(LL_HSEM_1StepLock(HSEM, CFG_HW_CLK48_CONFIG_SEMID) == 0);
     }
 
     do {