random trick
This commit is contained in:
parent
7f61757f92
commit
aa9f609df5
|
@ -863,6 +863,8 @@ void startTunerStudioConnectivity(void) {
|
||||||
// Assert tune & output channel struct sizes
|
// Assert tune & output channel struct sizes
|
||||||
static_assert(sizeof(persistent_config_s) == TOTAL_CONFIG_SIZE, "TS datapage size mismatch");
|
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");
|
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));
|
memset(&tsState, 0, sizeof(tsState));
|
||||||
syncTunerStudioCopy();
|
syncTunerStudioCopy();
|
||||||
|
|
Loading…
Reference in New Issue