LIS2MDL SPI 4 Wires
Hi,
I'm trying to use LIS2MDL magnetometer sensor with 4 wire bus but I'm encountering a problem with the library.
Here is my init function:

lis2mdl.c library screenshot:

On line 122, my instance is always initialized (is_initialized=1) by the init function (line 113) so it always bypass the line 124 to init the SPI 4 wires.
I resolved the problem by replacing the == by != to force the program to init the 4 wires SPI.
Is there a mistake in the library or do I do something wrong ?
