Align code style (#40)

- Mutex -> Mutex*
- Cleanup enum names
- Other small changes
This commit is contained in:
Ken Van Hoeylandt
2024-02-11 00:58:43 +01:00
committed by GitHub
parent 9327d61427
commit e0db8767c7
30 changed files with 117 additions and 121 deletions
@@ -12,7 +12,7 @@ extern "C" {
typedef struct {
PubSubSubscription* wifi_subscription;
Mutex mutex;
Mutex* mutex;
WifiConnectState state;
WifiConnectView view;
bool view_enabled;
@@ -10,7 +10,7 @@ extern "C" {
typedef struct {
PubSubSubscription* wifi_subscription;
Mutex mutex;
Mutex* mutex;
WifiManageState state;
WifiManageView view;
bool view_enabled;
+1 -1
View File
@@ -19,7 +19,7 @@
typedef struct {
/** @brief Locking mechanism for modifying the Wifi instance */
Mutex mutex;
Mutex* mutex;
/** @brief The public event bus */
PubSub* pubsub;
/** @brief The internal message queue */
@@ -15,7 +15,7 @@ static void hash_reset_all();
// region Hash
static Mutex hash_mutex = NULL;
static Mutex* hash_mutex = NULL;
static int8_t hash_index = -1;
static uint32_t hashes[TT_WIFI_CREDENTIALS_LIMIT] = { 0 };