Skip to content

Commit

Permalink
add jafar delay to head
Browse files Browse the repository at this point in the history
  • Loading branch information
MikyM0use authored and MikyM0use committed Nov 6, 2016
1 parent 2cc88fd commit e74fe31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions jafar_sketch/jafar_sketch.ino
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ TVout TV;

#endif //USE OSD

void inline jafar_delay(const uint16_t __delay) {
#ifdef USE_OSD
TV.delay(__delay);
#else
delay(__delay);
#endif
}

//////********* SETUP ************////////////////////
void setup() {

Expand Down
7 changes: 0 additions & 7 deletions jafar_sketch/jafar_util.ino
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ inline uint8_t readSwitch() {
#endif
}

void inline jafar_delay(const uint16_t __delay) {
#ifdef USE_OSD
TV.delay(__delay);
#else
delay(__delay);
#endif
}
void set_and_wait(uint8_t band, uint8_t menu_pos) {
int16_t rssi_b = 0, rssi_a = 0, rssi_b_norm = 0, rssi_a_norm = 0, prev_rssi_b_norm = 0, prev_rssi_a_norm = 0, global_max_rssi;
u8 current_rx;
Expand Down

0 comments on commit e74fe31

Please sign in to comment.