mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Sub-GHz: Streamline generic serialize, -1.5k dfu
This commit is contained in:
@@ -1,22 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "../blocks/generic_i.h"
|
||||
|
||||
#include <lib/flipper_format/flipper_format.h>
|
||||
#include "furi.h"
|
||||
#include <furi_hal.h>
|
||||
#include <lib/subghz/types.h>
|
||||
#include <locale/locale.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define TPMS_KEY_FILE_VERSION 1
|
||||
#define TPMS_KEY_FILE_TYPE "Flipper SubGhz Key File"
|
||||
|
||||
#define TPMS_NO_BATT 0xFF
|
||||
|
||||
typedef struct TPMSBlockGeneric TPMSBlockGeneric;
|
||||
@@ -35,13 +26,6 @@ struct TPMSBlockGeneric {
|
||||
float temperature; // celsius
|
||||
};
|
||||
|
||||
/**
|
||||
* Get name preset.
|
||||
* @param preset_name name preset
|
||||
* @param preset_str Output name preset
|
||||
*/
|
||||
void tpms_block_generic_get_preset_name(const char* preset_name, FuriString* preset_str);
|
||||
|
||||
/**
|
||||
* Serialize data TPMSBlockGeneric.
|
||||
* @param instance Pointer to a TPMSBlockGeneric instance
|
||||
|
||||
Reference in New Issue
Block a user