From 5fee1b17d5deef03bd1064215280da69603a91ef Mon Sep 17 00:00:00 2001 From: MD Peace Date: Wed, 15 Nov 2023 11:52:09 +1100 Subject: [PATCH] drivers: gnss: Fix typo in __ASSERT statement str is being checking the __ASSERT where nano should be being checked Signed-off-by: MD Peace --- drivers/gnss/gnss_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gnss/gnss_parse.c b/drivers/gnss/gnss_parse.c index 5cde6a630a9..29808dd74f2 100644 --- a/drivers/gnss/gnss_parse.c +++ b/drivers/gnss/gnss_parse.c @@ -26,7 +26,7 @@ int gnss_parse_dec_to_nano(const char *str, int64_t *nano) int64_t increment; __ASSERT(str != NULL, "str argument must be provided"); - __ASSERT(str != NULL, "nano argument must be provided"); + __ASSERT(nano != NULL, "nano argument must be provided"); /* Find decimal */ while (str[pos] != '\0') {