Commit d41147f4 authored by Thomas Schlichter's avatar Thomas Schlichter

fix introduced segfault in old scope

parent c36d81a0
...@@ -738,6 +738,18 @@ static void *scope_thread_gNB(void *arg) { ...@@ -738,6 +738,18 @@ static void *scope_thread_gNB(void *arg) {
} }
#endif #endif
static void scopeUpdaterGnb(enum PlotTypeGnbIf plotType, int numElt)
{
switch (plotType) {
case puschLLRe:
/* update PUSCH LLR plot */
break;
case puschIQe:
/* update PUSCH IQ plot */
break;
}
}
STATICFORXSCOPE void gNBinitScope(scopeParms_t *p) STATICFORXSCOPE void gNBinitScope(scopeParms_t *p)
{ {
AssertFatal(p->gNB->scopeData = calloc(sizeof(scopeData_t), 1), ""); AssertFatal(p->gNB->scopeData = calloc(sizeof(scopeData_t), 1), "");
...@@ -746,6 +758,7 @@ STATICFORXSCOPE void gNBinitScope(scopeParms_t *p) ...@@ -746,6 +758,7 @@ STATICFORXSCOPE void gNBinitScope(scopeParms_t *p)
scope->argv=p->argv; scope->argv=p->argv;
scope->ru=p->ru; scope->ru=p->ru;
scope->gNB=p->gNB; scope->gNB=p->gNB;
scope->scopeUpdater = scopeUpdaterGnb;
scope->copyData = copyData; scope->copyData = copyData;
#ifndef WEBSRVSCOPE #ifndef WEBSRVSCOPE
pthread_t forms_thread; pthread_t forms_thread;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment