Skip to content

Commit

Permalink
[VOR] ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmxmx committed Oct 7, 2019
1 parent 59ac0f4 commit bdab298
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
3 changes: 3 additions & 0 deletions software/o_c_REV/OC_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
#include "OC_version.h"
#include "OC_options.h"
#include "src/drivers/display.h"

#ifdef VOR
#include "VBiasManager.h"
VBiasManager *VBiasManager::instance = 0;
#endif

extern uint_fast8_t MENU_REDRAW;

Expand Down
5 changes: 5 additions & 0 deletions software/o_c_REV/VBiasManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
#ifndef VBIAS_MANAGER_H
#define VBIAS_MANAGER_H

#include "OC_options.h"

#ifdef VOR

#define BIAS_EDITOR_TIMEOUT 16666

class VBiasManager {
Expand Down Expand Up @@ -131,3 +135,4 @@ class VBiasManager {
};

#endif // VBIAS_MANAGER_H
#endif
9 changes: 6 additions & 3 deletions software/o_c_REV/o_c_REV.ino
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,12 @@ void FASTRUN loop() {
OC::apps::current_app->DrawMenu();
++menu_redraws;

// JEJ:On app screens, show the bias popup, if necessary
VBiasManager *vbias_m = vbias_m->get();
vbias_m->DrawPopupPerhaps();
#ifdef VOR
// JEJ:On app screens, show the bias popup, if necessary
VBiasManager *vbias_m = vbias_m->get();
vbias_m->DrawPopupPerhaps();
#endif

} else {
OC::apps::current_app->DrawScreensaver();
}
Expand Down

0 comments on commit bdab298

Please sign in to comment.