This change will cause the example sketch to be accessible via the Arduino IDE's File > Examples > LSM6DSM_LIS2MDL_LPS22HB menu.
This will also prevent problems caused by the folder name not matching the sketch name, as required by the Arduino IDE. When you open a sketch not meeting this requirement the Arduino IDE displays a dialog:
The file "EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly.ino" needs to be inside a sketch folder named "EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly".
Create this folder, move the file, and continue?
Currently when you click "OK" the Arduino IDE moves only the file EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly.ino to the appropriately named folder, leaving behind Madgewick.ino, which will cause compilation of the sketch to fail.
This change will cause the example sketch to be accessible via the Arduino IDE's File > Examples > LSM6DSM_LIS2MDL_LPS22HB menu.
This will also prevent problems caused by the folder name not matching the sketch name, as required by the Arduino IDE. When you open a sketch not meeting this requirement the Arduino IDE displays a dialog:
Currently when you click "OK" the Arduino IDE moves only the file EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly.ino to the appropriately named folder, leaving behind Madgewick.ino, which will cause compilation of the sketch to fail.