mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
Update and fix TOTP
fix - added this in every button event switch:
default:
break;
This commit is contained in:
17
applications/plugins/totp/services/nullable/nullable.h
Normal file
17
applications/plugins/totp/services/nullable/nullable.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define TOTP_NULLABLE_STRUCT(value_type) \
|
||||
typedef struct TotpNullable_##value_type { \
|
||||
bool is_null; \
|
||||
value_type value; \
|
||||
} TotpNullable_##value_type
|
||||
|
||||
#define TOTP_NULLABLE_NULL(s) s.is_null = true
|
||||
#define TOTP_NULLABLE_VALUE(s, v) \
|
||||
s.is_null = false; \
|
||||
s.value = v
|
||||
|
||||
TOTP_NULLABLE_STRUCT(uint16_t);
|
||||
Reference in New Issue
Block a user