Skip to content

Commit

Permalink
Remove guards.h since esp_check has been adopted
Browse files Browse the repository at this point in the history
  • Loading branch information
abobija committed Sep 11, 2024
1 parent fc9fa4a commit 8b41e98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 127 deletions.
126 changes: 0 additions & 126 deletions include/rc522/guards.h

This file was deleted.

7 changes: 6 additions & 1 deletion src/rc522.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <esp_check.h>

#include "rc522.h"
#include "rc522/guards.h"
#include "rc522/registers.h"

static const char *TAG = "RC522";
Expand All @@ -31,6 +30,12 @@ struct rc522
bool tag_was_present_last_time;
};

#define FREE(ptr) \
if ((ptr) != NULL) { \
free(ptr); \
(ptr) = NULL; \
}

static void rc522_task(void *arg);

static esp_err_t rc522_write_n(rc522_handle_t rc522, uint8_t addr, uint8_t n, uint8_t *data)
Expand Down

0 comments on commit 8b41e98

Please sign in to comment.