From 417fded2995b6bbd085398edd4694c44e6a4a9bb Mon Sep 17 00:00:00 2001 From: Daniel Peter Chokola Date: Sat, 25 Mar 2023 19:51:30 -0400 Subject: [PATCH] drop #include for util.h which was not committed --- Src/sx127x.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Src/sx127x.c b/Src/sx127x.c index 0ca6c4e..6b4134e 100644 --- a/Src/sx127x.c +++ b/Src/sx127x.c @@ -8,7 +8,6 @@ /* Includes */ #include "sx127x.h" #include "spi.h" -#include "util.h" /* Definitions */ /* Common Registers */ @@ -211,6 +210,11 @@ #define RREG(x) ((x) & SX127X_READ_MASK) #define CS_ASSERT() do { sx127x->port->BSRR = sx127x->pin << 16; } while(0) #define CS_DEASSERT() do { sx127x->port->BSRR = sx127x->pin; } while(0) +#define return_if_fail(cond) \ + if(!(cond)) { return; } +#define return_val_if_fail(cond, val) \ + if(!(cond)) { return (val); } +#define return_null_if_fail(cond) return_val_if_fail((cond), NULL) /* Private Variables */