Kenta Tanabe / TRP105F_Spline_for_child

Fork of TRP105F_Spline by Akifumi Takahashi

Files at this revision

API Documentation at this revision

Comitter:
tanaken0605
Date:
Thu Sep 01 10:18:59 2016 +0000
Parent:
23:772a9736ee59
Child:
26:062b89351253
Commit message:
bugfix

Changed in this revision

TRP105FS_SPIWrapper.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;