Browse Source

fixed error and changed SketchAssistantWPF Debug compile setting to 32bit, due to the BodyActuator.dll being a 32bit dll the program will no longer work when compiled in 64bit

Vincenz Mechler 5 years ago
parent
commit
2845142baf

+ 3 - 2
SketchAssistant/SketchAssistantWPF/MVP_Model.cs

@@ -112,8 +112,9 @@ namespace SketchAssistantWPF
         public MVP_Model(MVP_Presenter presenter)
         {
             //TODO remove
-            LocalArmbandInterface.setupArmband();
-
+            Console.WriteLine("trying to initialize Armband...");
+            int tmp= LocalArmbandInterface.setupArmband();
+            Console.WriteLine("Armband initialization terminated, exit code: " + tmp);
             programPresenter = presenter;
             historyOfActions = new ActionHistory();
             //redrawAss = new RedrawAssistant();

+ 1 - 1
SketchAssistant/SketchAssistantWPF/SketchAssistantWPF.csproj

@@ -34,7 +34,7 @@
     <BootstrapperEnabled>true</BootstrapperEnabled>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <PlatformTarget>AnyCPU</PlatformTarget>
+    <PlatformTarget>x86</PlatformTarget>
     <DebugSymbols>true</DebugSymbols>
     <DebugType>full</DebugType>
     <Optimize>false</Optimize>

BIN
SketchAssistant/SketchAssistantWPF/StaticLibMotors.dll


+ 1 - 1
SketchAssistant/StaticLib1/ArmbandInterface.cpp

@@ -44,7 +44,7 @@ extern "C" {
 			}
 			//strcpy(port, "COM5");
 			setupMotors();
-			startVibrate(0, 1.0);
+			//startVibrate(0, 1.0);
 			return -1;
 		}