Commit 04c48b85 authored by Henrique Silva's avatar Henrique Silva

Fix GCC incompatible pointer type warning

parent d1c7679f
......@@ -43,7 +43,7 @@ void dac_vadj_config( uint8_t addr, uint8_t val )
{
uint16_t data = (addr << 8) | (val);
spi_assertSSEL();
spi_write( &data, sizeof(data) );
spi_write( (uint8_t *) &data, sizeof(data) );
spi_deassertSSEL();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment