fix knxPython build

This commit is contained in:
Thomas Kunze 2020-10-28 21:44:01 +01:00
parent 06e2c11d96
commit d153825f2e
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,3 @@
add_subdirectory(examples/knx-linux) add_subdirectory(examples/knx-linux)
add_subdirectory(examples/knx-linux-coupler) add_subdirectory(examples/knx-linux-coupler)
#add_subdirectory(examples/knxPython) add_subdirectory(examples/knxPython)

View File

@ -51,7 +51,8 @@ static void Prepare(std::vector<std::string> args)
argv = std::vector<const char*>(argsVector.size()); argv = std::vector<const char*>(argsVector.size());
std::transform(argsVector.begin(), argsVector.end(), argv.begin(), StdStringCStrFunctor()); std::transform(argsVector.begin(), argsVector.end(), argv.begin(), StdStringCStrFunctor());
platform = new LinuxPlatform(argv.size(), const_cast<char**>(argv.data())); platform = new LinuxPlatform();
platform->cmdLineArgs(argv.size(), const_cast<char**>(argv.data()));
bau = new Bau57B0(*platform); bau = new Bau57B0(*platform);
} }