summaryrefslogtreecommitdiff
path: root/demos/device/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-14 17:18:05 +0700
committerhathach <[email protected]>2014-03-14 17:18:05 +0700
commit4cdebe2e769e52f04ad72992dd9d265372453a18 (patch)
treef8852c031d8635c7884c0e51484dbe8d5cea135c /demos/device/src
parentb545544c32e4e8212583425b531f711cca6684ff (diff)
fix warning for device os none
Diffstat (limited to 'demos/device/src')
-rw-r--r--demos/device/src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/device/src/main.c b/demos/device/src/main.c
index 9e9be2a7d..c15d92e4d 100644
--- a/demos/device/src/main.c
+++ b/demos/device/src/main.c
@@ -108,8 +108,6 @@ int main(void)
#error need to start RTOS schduler
#endif
- while(1) { } // should not reach here
-
return 0;
}
@@ -133,7 +131,9 @@ OSAL_TASK_FUNCTION( led_blinking_task ) (void* p_task_para)
board_leds(led_on_mask, 1 - led_on_mask);
led_on_mask = 1 - led_on_mask; // toggle
- uint32_t btn_mask = board_buttons();
+ uint32_t btn_mask;
+ btn_mask = board_buttons();
+
for(uint8_t i=0; i<32; i++)
{
if ( BIT_TEST_(btn_mask, i) ) printf("button %d is pressed\n", i);