coding guidelines: comply with MISRA Rule 20.9

- avoid to use undefined macros in #if expressions

Signed-off-by: Hess Nathan <nhess@baumer.com>
This commit is contained in:
Hess Nathan 2024-04-29 11:04:42 +02:00 committed by Fabio Baltieri
parent 3da656388d
commit 1486259139
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ static void tx_start(const struct device *dev, const uint8_t *buf, size_t len)
const struct uarte_nrfx_config *config = dev->config;
NRF_UARTE_Type *uarte = get_uarte_instance(dev);
#if CONFIG_PM_DEVICE
#ifdef CONFIG_PM_DEVICE
enum pm_device_state state;
(void)pm_device_state_get(dev, &state);