How to test part cooling fan

Found the problem (which may point to a bug or two) and I have another question.

When I set up the printer with the FLY-SHT42 board, I used an MKS Robin Nano V3 for the movement steppers. The “printer.cfg” file was taken from another printer which also used the MKS Robin Nano V3 as it was a good base for the heated bed and movement steppers.

I thought I had deleted/commented out all the statements for the functions which are used by the FLY-SHT42 but, I had left in the [fan] statement and I put in another [fan] statement in by “confly.cfg” file which was included in the “printer.cfg”. So I had two [fan] statements, one in each of the .cfg files.

First potential bug - shouldn’t two [fan] statements be flagged as an error during Klipper restart, even if they are in separate .cfg files?

Next, I found the two [fan] statements and removed the one in the printer.cfg file (as the one in confly.cfg should have taken precedence) but there was no difference in operation. Out of desperation, I rebooted the rPi and everything started to work correctly (ie fans working correctly and I can set speeds with the M106 command in the console as well as using the Mainsail slider).

Should I need to reset the rPi for this kind of issue? It seems like the original printer.cfg was buffered in the rPi and was never updated.

Now, in my latest testing, I’m getting an ‘Unknown command: “SET_FAN_SPEED”’ in Mainsail as you can see here:

image

Everything has been updated to the latest level.

The defining statement for the fan is:
[heater_fan heatsink_fan]
pin: canFly:PB11
max_power: 1.0
fan_speed: 1
kick_start_time: 0
heater: extruder
heater_temp: 30.0

Any ideas on this one? I have no idea why the “SET_FAN_SPEED” command is not recognized.