Reverted gpio readall to older version - new version is gpio nreadall

fixed the max5322 code.
This commit is contained in:
Gordon Henderson
2013-07-23 09:19:34 +01:00
parent 27afc017b9
commit 8c8578a26b
3 changed files with 8 additions and 8 deletions

View File

@@ -44,8 +44,8 @@ static void myAnalogWrite (struct wiringPiNodeStruct *node, int pin, int value)
else
chanBits = 0b01010000 ;
chanBits |= ((value >> 4) & 0x0F) ;
dataBits = ((value << 4) & 0xF0) ;
chanBits |= ((value >> 12) & 0x0F) ;
dataBits = ((value ) & 0xFF) ;
spiData [0] = chanBits ;
spiData [1] = dataBits ;