You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if it is a 32-bit debian. This is what I'm running:
Linux version 5.10.63-v7+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1488 SMP Thu Nov 18 16:14:44 GMT 2021
doHernandezM
pushed a commit
to doHernandezM/SwiftyPi
that referenced
this issue
Jan 7, 2023
Board Type
RaspberryPi3
Operating System
Raspbian Buster
Swift Version
swift-5.1.5
Description
SPI send call fails with "Message too long" error.
This appears to fix this issue.
struct spi_ioc_transfer {
//var tx_buf: UnsafeMutableRawPointer
//var rx_buf: UnsafeMutableRawPointer
var tx_buf: UInt64
var rx_buf: UInt64
var len: UInt32
var speed_hz: UInt32 = 500000
var delay_usecs: UInt16 = 0
var bits_per_word: UInt8 = 8
let cs_change: UInt8 = 0
let tx_nbits: UInt8 = 0
let rx_nbits: UInt8 = 0
let pad: UInt16 = 0
}
And in transferData function
var r: CInt = 0
The text was updated successfully, but these errors were encountered: