Skip to content

Commit e6b8ed2

Browse files
authored
Merge pull request #3850 from LMESTM/fix_spi_warn
STM32: change spi error to debug warning
2 parents b8e1b06 + 00bfa3b commit e6b8ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/stm_spi_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ void spi_frequency(spi_t *obj, int hz) {
308308

309309
/* In case maximum pre-scaler still gives too high freq, raise an error */
310310
if (spi_hz > hz) {
311-
error("Couldn't set suitable spi freq: request:%d, lowest:%d\r\n", hz, spi_hz);
311+
DEBUG_PRINTF("WARNING: lowest SPI freq (%d) higher than requested (%d)\r\n", spi_hz, hz);
312312
}
313313

314314
DEBUG_PRINTF("spi_frequency, request:%d, select:%d\r\n", hz, spi_hz);

0 commit comments

Comments
 (0)