for child
Fork of TRP105F_Spline by
Revision 27:1f38ee841153, committed 2017-10-24
- Comitter:
- tanaken0605
- Date:
- Tue Oct 24 00:44:39 2017 +0000
- Parent:
- 26:062b89351253
- Commit message:
- ?????????
Changed in this revision
TRP105FS_SPIWrapper.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 062b89351253 -r 1f38ee841153 TRP105FS_SPIWrapper.cpp --- a/TRP105FS_SPIWrapper.cpp Fri Oct 14 07:06:57 2016 +0000 +++ b/TRP105FS_SPIWrapper.cpp Tue Oct 24 00:44:39 2017 +0000 @@ -16,7 +16,7 @@ SPI_TRP105FS::ADread(int channel) { - int command = (13|(channel<<1))<<11; + int command = ((13|(channel<<1))<<11) & 0x7fff; __disable_irq(); // 割り込み禁止 cs=0; int resultbyte=spi.write(command) & 0x3ff;