From 7db9f66c8b902f7c6417f06145d286bdd4ea83fe Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 9 Nov 2011 23:24:15 +0100 Subject: dfu: Use {} for possible empty if statement (in case debug is off) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/dfu/dfu.c:853:23: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] --- firmware/src/dfu/dfu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/src') diff --git a/firmware/src/dfu/dfu.c b/firmware/src/dfu/dfu.c index 682ce5e..f31b9f8 100644 --- a/firmware/src/dfu/dfu.c +++ b/firmware/src/dfu/dfu.c @@ -847,8 +847,10 @@ static __dfufunc void dfu_udp_ep0_handler(void) break; case STD_SET_CONFIGURATION: DEBUGE("SET_CONFIG "); - if (wValue) + if (wValue) { DEBUGE("VALUE!=0 "); + } + cur_config = wValue; udp_ep0_send_zlp(); pUDP->UDP_GLBSTATE = -- cgit v1.2.3