Kenta Tanabe / TRP105F_Spline_for_child

Fork of TRP105F_Spline by Akifumi Takahashi

Revision:
24:4e12e2fd088f
Parent:
23:772a9736ee59
Child:
26:062b89351253
diff -r 772a9736ee59 -r 4e12e2fd088f TRP105FS_SPIWrapper.cpp
--- a/TRP105FS_SPIWrapper.cpp	Thu Sep 01 09:37:34 2016 +0000
+++ b/TRP105FS_SPIWrapper.cpp	Thu Sep 01 10:18:59 2016 +0000
@@ -16,7 +16,7 @@
 SPI_TRP105FS::ADread(int channel)
 {
     
-    int command = (13|(ch<<1))<<11;
+    int command = (13|(channel<<1))<<11;
         __disable_irq(); // 割り込み禁止
     cs=0;
     int resultbyte=spi.write(command) & 0x3ff;