From fe7630e23e27a9d2bff671af9fd1ca4f0ef0b7a6 Mon Sep 17 00:00:00 2001 From: Tyson Date: Sun, 21 Feb 2021 17:01:34 +1100 Subject: [PATCH] Add some constants for product version --- src/interface/AxeSystem.h | 6 +++++- src/interface/private/AxeSystem_Private.h | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/interface/AxeSystem.h b/src/interface/AxeSystem.h index 10327bf..0a62c39 100644 --- a/src/interface/AxeSystem.h +++ b/src/interface/AxeSystem.h @@ -33,7 +33,11 @@ enum class UpdateMode { class AxeSystem { public: - AxeSystem(byte sysexFractalVersion = SYSEX_AXE_VERSION) { + + const static byte FRACTAL_PRODUCT_AXEFX3 = 0x10; + const static byte FRACTAL_PRODUCT_FM3 = 0x11; + + AxeSystem(byte sysexFractalVersion = FRACTAL_PRODUCT_AXEFX3) { _sysexFractalVersion = sysexFractalVersion; _looper.setAxeSystem(this); } diff --git a/src/interface/private/AxeSystem_Private.h b/src/interface/private/AxeSystem_Private.h index 9ebd888..f9442f9 100644 --- a/src/interface/private/AxeSystem_Private.h +++ b/src/interface/private/AxeSystem_Private.h @@ -15,7 +15,6 @@ const static byte SYSEX_EFFECT_ENABLE = 0x00; const static byte SYSEX_MANUFACTURER_BYTE1 = 0x00; const static byte SYSEX_MANUFACTURER_BYTE2 = 0x01; const static byte SYSEX_MANUFACTURER_BYTE3 = 0x74; -const static byte SYSEX_AXE_VERSION = 0x10; const static byte SYSEX_QUERY_BYTE = 0x7F; const static byte SYSEX_CHECKSUM_PLACEHOLDER = 0x00;