Build system improvements and bug fixes (#1129)
* Assets: recompile * Makefile: add debug_other to main makefile * Github: stop compilation if compiled assets not in sync with assets sources * Assets: recompile * Makefile: correct debug_other rule. Bt: prevent on system start hook from waiting for bt service * Power, FuriHal: gauge self check report * Loader: move on system start hook call to the beginning
This commit is contained in:
@@ -28,22 +28,25 @@ typedef struct {
|
||||
bool FD : 1; // Full-discharge is detected
|
||||
} BatteryStatus;
|
||||
|
||||
_Static_assert(sizeof(BatteryStatus) == 2, "Incorrect structure size");
|
||||
|
||||
typedef struct {
|
||||
// Low byte, Low bit first
|
||||
bool CALMD : 1;
|
||||
bool SEC0 : 1;
|
||||
bool SEC1 : 1;
|
||||
bool EDV2 : 1;
|
||||
bool VDQ : 1;
|
||||
bool INITCOMP : 1;
|
||||
bool SMTH : 1;
|
||||
bool BTPINT : 1;
|
||||
bool CALMD : 1; /**< Calibration mode enabled */
|
||||
uint8_t SEC : 2; /**< Current security access */
|
||||
bool EDV2 : 1; /**< EDV2 threshold exceeded */
|
||||
bool VDQ : 1; /**< Indicates if Current discharge cycle is NOT qualified or qualified for an FCC updated */
|
||||
bool INITCOMP : 1; /**< gauge initialization is complete */
|
||||
bool SMTH : 1; /**< RemainingCapacity is scaled by smooth engine */
|
||||
bool BTPINT : 1; /**< BTP threshold has been crossed */
|
||||
// High byte, Low bit first
|
||||
uint8_t RSVD1 : 2;
|
||||
bool CFGUPDATE : 1;
|
||||
bool CFGUPDATE : 1; /**< Gauge is in CONFIG UPDATE mode */
|
||||
uint8_t RSVD0 : 5;
|
||||
} OperationStatus;
|
||||
|
||||
_Static_assert(sizeof(OperationStatus) == 2, "Incorrect structure size");
|
||||
|
||||
typedef struct {
|
||||
// Low byte, Low bit first
|
||||
bool CCT : 1;
|
||||
@@ -62,6 +65,8 @@ typedef struct {
|
||||
uint8_t RSVD3 : 3;
|
||||
} GaugingConfig;
|
||||
|
||||
_Static_assert(sizeof(GaugingConfig) == 2, "Incorrect structure size");
|
||||
|
||||
typedef struct {
|
||||
union {
|
||||
GaugingConfig gauge_conf;
|
||||
|
Reference in New Issue
Block a user