[FL-378] Update usb descriptor to display unique flipper name (#373)
* update usb descriptor to display unique flipper name * added flip_ prefix for usb descriptor, updated manufacturer string * include name in ApiHalVersionOTP struct, update assets.py Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@ typedef struct {
|
||||
uint8_t body;
|
||||
uint8_t connect;
|
||||
uint32_t timestamp;
|
||||
char name[8];
|
||||
} ApiHalVersionOTP;
|
||||
|
||||
bool api_hal_version_do_i_belong_here() {
|
||||
@@ -32,3 +33,8 @@ const uint8_t api_hal_version_get_hw_connect() {
|
||||
const uint32_t api_hal_version_get_hw_timestamp() {
|
||||
return ((ApiHalVersionOTP*)OTP_AREA_BASE)->timestamp;
|
||||
}
|
||||
|
||||
const char * api_hal_version_get_name_ptr() {
|
||||
char * name = ((ApiHalVersionOTP*)OTP_AREA_BASE)->name;
|
||||
return *name == 0xFFU ? NULL : name;
|
||||
}
|
||||
|
Reference in New Issue
Block a user