mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 01:38:36 -07:00
add support for OFW - declare reverse_mac
This commit is contained in:
@@ -153,4 +153,13 @@ FindMyType findmy_data_get_type(uint8_t data[EXTRA_BEACON_MAX_DATA_SIZE]) {
|
||||
} else {
|
||||
return FindMyTypeSamsung;
|
||||
}
|
||||
}
|
||||
|
||||
void furi_hal_bt_reverse_mac_addr(uint8_t mac_addr[GAP_MAC_ADDR_SIZE]) {
|
||||
uint8_t tmp;
|
||||
for(size_t i = 0; i < GAP_MAC_ADDR_SIZE / 2; i++) {
|
||||
tmp = mac_addr[i];
|
||||
mac_addr[i] = mac_addr[GAP_MAC_ADDR_SIZE - 1 - i];
|
||||
mac_addr[GAP_MAC_ADDR_SIZE - 1 - i] = tmp;
|
||||
}
|
||||
}
|
||||
@@ -20,6 +20,9 @@
|
||||
#include <gui/modules/popup.h>
|
||||
#include "scenes/findmy_scene.h"
|
||||
#include "helpers/base64.h"
|
||||
#if FW_ORIGIN_Official
|
||||
void furi_hal_bt_reverse_mac_addr(uint8_t mac_addr[GAP_MAC_ADDR_SIZE]);
|
||||
#endif
|
||||
|
||||
struct FindMy {
|
||||
Gui* gui;
|
||||
|
||||
Reference in New Issue
Block a user