mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
Fix build errors when using DEBUGASSERT
I never tested these drivers with debug assertions enabled as I should have. This commit fixes build errors due to wrong variable names used.
This commit is contained in:
committed by
Xiang Xiao
parent
1473c6848f
commit
1efbb4c114
@@ -199,7 +199,7 @@ static int dac7554_send(FAR struct dac_dev_s *dev, FAR struct dac_msg_s *msg)
|
||||
|
||||
/* Sanity check */
|
||||
|
||||
DEBUGASSERT(priv->SPI != NULL);
|
||||
DEBUGASSERT(priv->spi != NULL);
|
||||
|
||||
/* Set up message to send */
|
||||
|
||||
@@ -261,7 +261,7 @@ FAR struct dac_dev_s *dac7554_initialize(FAR struct spi_dev_s *spi,
|
||||
|
||||
/* Sanity check */
|
||||
|
||||
DEBUGASSERT(i2c != NULL);
|
||||
DEBUGASSERT(spi != NULL);
|
||||
|
||||
/* Initialize the DAC7554 device structure */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user