mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-29 02:08:10 -07:00
big merge with fz main repo
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
struct iButtonKey {
|
||||
uint8_t data[IBUTTON_KEY_DATA_SIZE];
|
||||
char name[IBUTTON_KEY_NAME_SIZE];
|
||||
iButtonKeyType type;
|
||||
};
|
||||
|
||||
@@ -42,14 +41,6 @@ uint8_t ibutton_key_get_data_size(iButtonKey* key) {
|
||||
return ibutton_key_get_size_by_type(key->type);
|
||||
}
|
||||
|
||||
void ibutton_key_set_name(iButtonKey* key, const char* name) {
|
||||
strlcpy(key->name, name, IBUTTON_KEY_NAME_SIZE);
|
||||
}
|
||||
|
||||
const char* ibutton_key_get_name_p(iButtonKey* key) {
|
||||
return key->name;
|
||||
}
|
||||
|
||||
void ibutton_key_set_type(iButtonKey* key, iButtonKeyType key_type) {
|
||||
key->type = key_type;
|
||||
}
|
||||
|
||||
@@ -68,20 +68,6 @@ const uint8_t* ibutton_key_get_data_p(iButtonKey* key);
|
||||
*/
|
||||
uint8_t ibutton_key_get_data_size(iButtonKey* key);
|
||||
|
||||
/**
|
||||
* Set key name
|
||||
* @param key
|
||||
* @param name
|
||||
*/
|
||||
void ibutton_key_set_name(iButtonKey* key, const char* name);
|
||||
|
||||
/**
|
||||
* Get pointer to key name
|
||||
* @param key
|
||||
* @return const char*
|
||||
*/
|
||||
const char* ibutton_key_get_name_p(iButtonKey* key);
|
||||
|
||||
/**
|
||||
* Set key type
|
||||
* @param key
|
||||
|
||||
Reference in New Issue
Block a user