mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-15 09:17:11 +00:00
Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
15b36ce112
4 changed files with 6 additions and 5 deletions
|
@ -27,7 +27,7 @@ void ibutton_cli_print_usage() {
|
|||
printf("\t<key_type> choose from:\r\n");
|
||||
printf("\tDallas (8 bytes key_data)\r\n");
|
||||
printf("\tCyfral (2 bytes key_data)\r\n");
|
||||
printf("\tMetakom (4 bytes key_data)\r\n");
|
||||
printf("\tMetakom (4 bytes key_data), must contain correct parity\r\n");
|
||||
printf("\t<key_data> are hex-formatted\r\n");
|
||||
};
|
||||
|
||||
|
@ -75,6 +75,7 @@ void ibutton_cli_read(Cli* cli) {
|
|||
ibutton_worker_start_thread(worker);
|
||||
ibutton_worker_read_set_callback(worker, ibutton_cli_worker_read_cb, event);
|
||||
|
||||
printf("Reading iButton...\r\nPress Ctrl+C to abort\r\n");
|
||||
ibutton_worker_read_start(worker, key);
|
||||
while(true) {
|
||||
uint32_t flags = osEventFlagsWait(event, EVENT_FLAG_IBUTTON_COMPLETE, osFlagsWaitAny, 100);
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#pragma once
|
||||
#define PROTOBUF_MAJOR_VERSION 0
|
||||
#define PROTOBUF_MINOR_VERSION 2
|
||||
#define PROTOBUF_MINOR_VERSION 3
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue