Skip to content

Commit

Permalink
database: lower the allowed address limit
Browse files Browse the repository at this point in the history
  • Loading branch information
paradajz committed Mar 10, 2021
1 parent ed180b9 commit 0561bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/application/database/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ bool Database::init()

_lastPresetAddress = LESSDB::nextParameterAddress() - _userDataStartAddress;

//limit the address space to 0xFFFF - 1
const uint32_t maxAddress = 0xFFFF - 1;
//limit the address space to max 14-bit MIDI value
const uint32_t maxAddress = 16383;
uint16_t maxPresets = (maxAddress / LESSDB::lastParameterAddress()) - _userDataStartAddress;

//get theoretical maximum of presets
Expand Down

0 comments on commit 0561bb8

Please sign in to comment.