Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TRP105F_Spline by
Revision 24:4e12e2fd088f, committed 2016-09-01
- 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;
