Add unused headers and unnecessary test_stop_app() calls

This commit is contained in:
Thammi 2013-08-29 19:21:06 +02:00
parent e09eeb7cc2
commit 3a41210d54
2 changed files with 1 additions and 12 deletions

View File

@ -1,11 +1,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <avr/io.h>
#define __DELAY_BACKWARD_COMPATIBLE__
#include <util/delay.h>
#include <pentabug/app.h> #include <pentabug/app.h>
#include <pentabug/lifecycle.h>
#include <pentabug/hal.h> #include <pentabug/hal.h>
static void init(void) { static void init(void) {

View File

@ -1,12 +1,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <avr/io.h>
#define __DELAY_BACKWARD_COMPATIBLE__
#include <util/delay.h>
#include <pentabug/app.h> #include <pentabug/app.h>
#include <pentabug/lifecycle.h>
#include <pentabug/music.h> #include <pentabug/music.h>
#include <pentabug/hal.h>
#define NOTE_BREAK 0xfffe #define NOTE_BREAK 0xfffe
#define NOTE_SHORT 0xfffd #define NOTE_SHORT 0xfffd
@ -30,11 +26,9 @@ static void run(void) {
} else { } else {
set_note(notes[i], 4); set_note(notes[i], 4);
wait_ms(500); wait_ms(500);
test_stop_app();
stop_note(); stop_note();
wait_ms(10); wait_ms(10);
test_stop_app();
} }
} }
} }