🎨 NULL => nullptr
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							2aad79fa15
						
					
				
				
					commit
					e402f43c02
				
			@@ -290,13 +290,13 @@ static bool SDIO_ReadWriteBlock_DMA(uint32_t block, const uint8_t *src, uint8_t
 | 
			
		||||
 | 
			
		||||
bool SDIO_ReadBlock(uint32_t block, uint8_t *dst) {
 | 
			
		||||
  uint8_t retries = SDIO_READ_RETRIES;
 | 
			
		||||
  while (retries--) if (SDIO_ReadWriteBlock_DMA(block, NULL, dst)) return true;
 | 
			
		||||
  while (retries--) if (SDIO_ReadWriteBlock_DMA(block, nullptr, dst)) return true;
 | 
			
		||||
  return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool SDIO_WriteBlock(uint32_t block, const uint8_t *src) {
 | 
			
		||||
  uint8_t retries = SDIO_READ_RETRIES;
 | 
			
		||||
  while (retries--) if (SDIO_ReadWriteBlock_DMA(block, src, NULL)) return true;
 | 
			
		||||
  while (retries--) if (SDIO_ReadWriteBlock_DMA(block, src, nullptr)) return true;
 | 
			
		||||
  return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -138,8 +138,8 @@ private:
 | 
			
		||||
  spi_dev *spi_d;
 | 
			
		||||
  dma_channel spiRxDmaChannel, spiTxDmaChannel;
 | 
			
		||||
  dma_dev* spiDmaDev;
 | 
			
		||||
  void (*receiveCallback)() = NULL;
 | 
			
		||||
  void (*transmitCallback)() = NULL;
 | 
			
		||||
  void (*receiveCallback)() = nullptr;
 | 
			
		||||
  void (*transmitCallback)() = nullptr;
 | 
			
		||||
 | 
			
		||||
  friend class SPIClass;
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user