You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
3.2 KiB

  1. --- a/cpp/src/Driver.cpp
  2. +++ b/cpp/src/Driver.cpp
  3. @@ -37,11 +37,6 @@
  4. #include "platform/Event.h"
  5. #include "platform/Mutex.h"
  6. #include "platform/SerialController.h"
  7. -#ifdef WINRT
  8. -#include "platform/winRT/HidControllerWinRT.h"
  9. -#else
  10. -#include "platform/HidController.h"
  11. -#endif
  12. #include "platform/Thread.h"
  13. #include "platform/Log.h"
  14. #include "platform/TimeStamp.h"
  15. @@ -223,14 +218,7 @@ m_nonceReportSentAttempt( 0 )
  16. initNetworkKeys(false);
  17. - if( ControllerInterface_Hid == _interface )
  18. - {
  19. - m_controller = new HidController();
  20. - }
  21. - else
  22. - {
  23. - m_controller = new SerialController();
  24. - }
  25. + m_controller = new SerialController();
  26. m_controller->SetSignalThreshold( 1 );
  27. Options::Get()->GetOptionAsBool( "NotifyTransactions", &m_notifytransactions );
  28. --- a/cpp/build/Makefile
  29. +++ b/cpp/build/Makefile
  30. @@ -66,16 +66,7 @@ CFLAGS += $(CPPFLAGS)
  31. #where to put the temporary library
  32. LIBDIR ?= $(top_builddir)
  33. -INCLUDES := -I $(top_srcdir)/cpp/src -I $(top_srcdir)/cpp/tinyxml/ -I $(top_srcdir)/cpp/hidapi/hidapi/
  34. -
  35. -ifeq ($(UNAME),Darwin)
  36. -SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/mac
  37. -else ifeq ($(UNAME),FreeBSD)
  38. -SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/libusb
  39. -else
  40. -SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/linux
  41. -endif
  42. -
  43. +INCLUDES := -I $(top_srcdir)/cpp/src -I $(top_srcdir)/cpp/tinyxml/
  44. SOURCES := $(top_srcdir)/cpp/src $(top_srcdir)/cpp/src/command_classes $(top_srcdir)/cpp/tinyxml \
  45. $(top_srcdir)/cpp/src/value_classes $(top_srcdir)/cpp/src/platform $(top_srcdir)/cpp/src/platform/unix $(SOURCES_HIDAPI) $(top_srcdir)/cpp/src/aes/
  46. @@ -85,14 +76,6 @@ VPATH = $(top_srcdir)/cpp/src:$(top_srcd
  47. tinyxml := $(notdir $(wildcard $(top_srcdir)/cpp/tinyxml/*.cpp))
  48. -ifeq ($(UNAME),Darwin)
  49. -hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/mac/*.c))
  50. -else ifeq ($(UNAME),FreeBSD)
  51. -hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/libusb/*.c))
  52. -else
  53. -hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/linux/*.c)) # we do not want the libusb version
  54. -endif
  55. -
  56. cclasses := $(notdir $(wildcard $(top_srcdir)/cpp/src/command_classes/*.cpp))
  57. vclasses := $(notdir $(wildcard $(top_srcdir)/cpp/src/value_classes/*.cpp))
  58. pform := $(notdir $(wildcard $(top_srcdir)/cpp/src/platform/*.cpp)) \
  59. @@ -111,7 +94,6 @@ printversion:
  60. -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(tinyxml))
  61. --include $(patsubst %.c,$(DEPDIR)/%.d,$(hidapi))
  62. -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(cclasses))
  63. -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(vclasses))
  64. -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(pform))
  65. @@ -131,7 +113,6 @@ $(top_srcdir)/cpp/src/vers.cpp:
  66. #$(OBJDIR)/vers.o: $(top_builddir)/vers.cpp
  67. $(LIBDIR)/libopenzwave.a: $(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \
  68. - $(patsubst %.c,$(OBJDIR)/%.o,$(hidapi)) \
  69. $(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
  70. $(patsubst %.cpp,$(OBJDIR)/%.o,$(cclasses)) \
  71. $(patsubst %.cpp,$(OBJDIR)/%.o,$(vclasses)) \
  72. @@ -143,7 +124,6 @@ $(LIBDIR)/libopenzwave.a: $(patsubst %.c
  73. @$(RANLIB) $@
  74. $(LIBDIR)/$(SHARED_LIB_NAME): $(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \
  75. - $(patsubst %.c,$(OBJDIR)/%.o,$(hidapi)) \
  76. $(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
  77. $(patsubst %.cpp,$(OBJDIR)/%.o,$(cclasses)) \
  78. $(patsubst %.cpp,$(OBJDIR)/%.o,$(vclasses)) \