mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
motorcontrol: remove hardcoded paths
Origin commit data
------------------
Commit: 793200339e
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-12-10 (Thu, 10 Dec 2020)
Origin message was:
------------------
- motorcontrol: remove hardcoded paths
This commit is contained in:
@@ -569,7 +569,8 @@ void CMotorControl::startSatFind(void)
|
||||
break;
|
||||
case 0:
|
||||
printf("[motorcontrol] starting satfind...\n");
|
||||
if (execlp("/bin/satfind", "satfind", NULL) < 0)
|
||||
std::string satfind = find_executable("satfind");
|
||||
if (satfind.empty() || execlp(satfind.c_str(), "satfind", NULL) < 0)
|
||||
printf("[motorcontrol] execlp satfind failed.\n");
|
||||
break;
|
||||
} /* switch */
|
||||
|
Reference in New Issue
Block a user