Skip to content

Commit

Permalink
ZoomIf preprocesser cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HamiltonGerlach committed Sep 9, 2020
1 parent 9ae9d06 commit 37e982d
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions ZoomIf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
#include "ZoomIf.h"
#include "ZoomMsg.h"

#if EEPROM_ENABLED
#include "FlashMem.h"
#include "MemMap.h"
#endif

static Stream *ZoomIf::Com;
static byte ZoomIf::Channel;
static bool ZoomIf::TunerState = false;
Expand All @@ -22,21 +17,14 @@ static byte ZoomIf::CurrentEffects = 0;
static _zoomPatchType ZoomIf::Buffer;

#if EEPROM_ENABLED
#include "FlashMem.h"
#include "MemMap.h"
#else
static _zoomPatchType ZoomIf::PatchMem[SRAM_PATCH_NUM];
#endif

#if EEPROM_ENABLED
static bool ZoomIf::PatchModified[EEPROM_PATCH_NUM];
#else
static bool ZoomIf::PatchModified[SRAM_PATCH_NUM];
#endif

#if EEPROM_ENABLED
static byte ZoomIf::EffectStates[EEPROM_PATCH_NUM];
#else
static byte ZoomIf::EffectStates[SRAM_PATCH_NUM];
#endif
static bool ZoomIf::PatchModified[MEM_PATCH_NUM];
static byte ZoomIf::EffectStates[MEM_PATCH_NUM];

static byte PatchFxOffsets[ZOOM_EFF_NO] =
{ZOOM_MSG_OFFSET_EFF_ON_1,
Expand Down

0 comments on commit 37e982d

Please sign in to comment.