mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-08-01 13:12:30 -04:00
Hamlib : Restore usage of FILPATHLEN which valid for both v2 and v4 thanks to commit 'HAMLIB patch for updated define'
This commit is contained in:
parent
5c78738d33
commit
29e9144aa5
@ -112,7 +112,7 @@ void RigThread::run() {
|
|||||||
std::cout << "Rig thread starting." << std::endl;
|
std::cout << "Rig thread starting." << std::endl;
|
||||||
|
|
||||||
rig = rig_init(rigModel);
|
rig = rig_init(rigModel);
|
||||||
strncpy(rig->state.rigport.pathname, rigFile.c_str(), HAMLIB_FILPATHLEN - 1);
|
strncpy(rig->state.rigport.pathname, rigFile.c_str(), FILPATHLEN - 1);
|
||||||
rig->state.rigport.parm.serial.rate = serialRate;
|
rig->state.rigport.parm.serial.rate = serialRate;
|
||||||
retcode = rig_open(rig);
|
retcode = rig_open(rig);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user