How to Update to RevLib 2025

I was wondering if anyone could give suggestions because I am having trouble migrating to Revlib 2025. I was using the migrating documentation to help guide my program, but I encountered an error that wouldn’t let me attach my configurations to the motor. It told me the error was:
The method configure(SparkBaseConfig, SparkBase.ResetMode, SparkBase.PersistMode) in the type SparkMax is not applicable for the arguments (SparkMaxConfig, ServoHub.ResetMode, SparkBase.PersistMode)Java(67108979).

Also, here is a picture of my code

You’re using the wrong resetMode. The config uses SparkBase.ResetMode, you’re using ServoHub.ResetMode.

3 Likes