From 36b398f89fd6267f25e6c9ef36256c7156306b02 Mon Sep 17 00:00:00 2001 From: Baohong Liu Date: Tue, 15 Nov 2016 17:19:31 -0800 Subject: [PATCH] samples: button: fix variable type mismatching issue The variable type mismatching was caught by LLVM. Jira: ZEP-1179 Change-Id: I084406601badc64c257cbdd82b9c8b7509549303 Signed-off-by: Baohong Liu --- samples/basic/button/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/basic/button/src/main.c b/samples/basic/button/src/main.c index 3d60e3b19ae959..2782110ebd79e9 100644 --- a/samples/basic/button/src/main.c +++ b/samples/basic/button/src/main.c @@ -73,7 +73,7 @@ void main(void) gpio_pin_enable_callback(gpiob, PIN); while (1) { - int val = 0; + uint32_t val = 0; gpio_pin_read(gpiob, PIN, &val); k_sleep(SLEEP_TIME);