random trick

This commit is contained in:
Andrey 2021-06-12 13:48:37 -04:00
parent 76cd257221
commit 4182eccbf3
1 changed files with 2 additions and 0 deletions

View File

@ -863,6 +863,8 @@ void startTunerStudioConnectivity(void) {
// Assert tune & output channel struct sizes
static_assert(sizeof(persistent_config_s) == TOTAL_CONFIG_SIZE, "TS datapage size mismatch");
static_assert(sizeof(TunerStudioOutputChannels) == TS_OUTPUT_SIZE, "TS output channels size mismatch");
// useful trick if you need to know how far off is the static_assert
// char (*__kaboom)[sizeof(persistent_config_s)] = 1;
memset(&tsState, 0, sizeof(tsState));
syncTunerStudioCopy();