mirror of
https://github.com/JvanKatwijk/dab-cmdline
synced 2025-10-05 23:52:50 +02:00
modification to main to set name right when a service is selected by number
This commit is contained in:
@@ -334,10 +334,10 @@ deviceHandler *theDevice;
|
||||
exit (22);
|
||||
}
|
||||
|
||||
fprintf (stderr, "going to start program %s\n", programName. c_str ());
|
||||
run. store (true);
|
||||
if (serviceId != -1)
|
||||
programName = dab_getserviceName (serviceId, theRadio);
|
||||
fprintf (stderr, "we try to start program %s\n", programName. c_str ());
|
||||
if (dabService (programName, theRadio) < 0) {
|
||||
fprintf (stderr, "sorry we cannot handle service %s\n",
|
||||
programName. c_str ());
|
||||
|
@@ -441,10 +441,11 @@ bool err;
|
||||
exit (22);
|
||||
}
|
||||
|
||||
fprintf (stderr, "going to start program %s\n", programName. c_str ());
|
||||
run. store (true);
|
||||
if (serviceIdentifier != -1)
|
||||
programName = theRadio -> dab_getserviceName (serviceIdentifier);
|
||||
fprintf (stderr, "we try to start program %s\n",
|
||||
programName. c_str ());
|
||||
if (theRadio -> dab_service (programName) < 0) {
|
||||
fprintf (stderr, "sorry we cannot handle service %s\n",
|
||||
programName. c_str ());
|
||||
|
@@ -400,10 +400,10 @@ bool err;
|
||||
exit (22);
|
||||
}
|
||||
|
||||
fprintf (stderr, "going to start program %s\n", programName. c_str ());
|
||||
run. store (true);
|
||||
if (serviceIdentifier != -1)
|
||||
programName = theRadio -> dab_getserviceName (serviceIdentifier);
|
||||
fprintf (stderr, "going to start program %s\n", programName. c_str ());
|
||||
if (theRadio -> dab_service (programName) < 0) {
|
||||
fprintf (stderr, "sorry we cannot handle service %s\n",
|
||||
programName. c_str ());
|
||||
|
@@ -402,10 +402,10 @@ bool err;
|
||||
exit (22);
|
||||
}
|
||||
|
||||
fprintf (stderr, "going to start program %s\n", programName. c_str ());
|
||||
run. store (true);
|
||||
if (serviceIdentifier != -1)
|
||||
programName = theRadio -> dab_getserviceName (serviceIdentifier);
|
||||
fprintf (stderr, "we try to start program %s\n", programName. c_str ());
|
||||
if (theRadio -> dab_service (programName) < 0) {
|
||||
fprintf (stderr, "sorry we cannot handle service %s\n",
|
||||
programName. c_str ());
|
||||
|
@@ -143,6 +143,7 @@ endif ()
|
||||
include_directories (
|
||||
${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
|
||||
.
|
||||
/usr/lib64/python3.5/site-packages/numpy/core/include/
|
||||
./
|
||||
../
|
||||
../library/
|
||||
|
11
python-example/arrayobject.h
Normal file
11
python-example/arrayobject.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef Py_ARRAYOBJECT_H
|
||||
#define Py_ARRAYOBJECT_H
|
||||
|
||||
#include "ndarrayobject.h"
|
||||
#include "npy_interrupt.h"
|
||||
|
||||
#ifdef NPY_NO_PREFIX
|
||||
#include "noprefix.h"
|
||||
#endif
|
||||
|
||||
#endif
|
@@ -450,7 +450,7 @@ void *result;
|
||||
false,
|
||||
0);
|
||||
#else
|
||||
theDevice = new devicehandler ();
|
||||
theDevice = new deviceHandler ();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user