MNTM: Add flipper Shell Color spoofing support

This commit is contained in:
Willy-JL
2024-04-07 20:43:12 +01:00
parent 6fc6d50904
commit 73e8c632d7
5 changed files with 36 additions and 1 deletions

View File

@@ -8,6 +8,8 @@
#include <stdio.h>
#include <ble/ble.h>
#include <momentum/momentum.h>
#define TAG "FuriHalVersion"
#define FURI_HAL_VERSION_OTP_HEADER_MAGIC 0xBABE
@@ -241,7 +243,10 @@ uint8_t furi_hal_version_get_hw_body(void) {
}
FuriHalVersionColor furi_hal_version_get_hw_color(void) {
return furi_hal_version.board_color;
if(momentum_settings.spoof_color == FuriHalVersionColorUnknown) {
return furi_hal_version.board_color;
}
return momentum_settings.spoof_color;
}
uint8_t furi_hal_version_get_hw_connect(void) {