Skip to content

Commit efeeb30

Browse files
committedMar 3, 2025
STM32: Fix spi.write usage on same port that SD card is used with (fix #2613)
1 parent e6b2fd2 commit efeeb30

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
Pipboy: Pip.audioStartVar(wav,{overlap:true}) can now play sounds over the top of other sounds. audioRead now doesn't stop audio playback
1919
STM32: Ensure proper distribution of analogRead values (now `0<=analogRead()<1` as on other boards) and add docs (fix #2612)
2020
Change ioBuffer FIFO from 4 byte blocks to variable length blocks. Far more efficient for USB/BLE/other block data
21+
STM32: Fix spi.write usage on same port that SD card is used with (fix #2613)
2122

2223
2v25 : ESP32C3: Get analogRead working correctly
2324
Graphics: Adjust image alignment when rotating images to avoid cropping (fix #2535)

‎src/jsspi.c

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ void jsspiDumpSPIInfo(JshSPIInfo *inf) {
2626

2727
void jsspiHardwareFunc(unsigned char *tx, unsigned char *rx, unsigned int len, spi_sender_data *info) {
2828
IOEventFlags device = *(IOEventFlags*)info;
29+
jshSPISetReceive(device, rx!=NULL); // ensure we set if we want to receive or not, fix #2613
2930
jshSPISendMany(device, tx, rx, len, NULL/*no callback - sync*/);
3031
}
3132

0 commit comments

Comments
 (0)