[Solved] hServoModule Deprecated?

I’m building offline in Visual Code with hFramework 1.5.30 extensions. After I “Create Husarion Project”, all works well and I can build and upload to CORE2. Even when I build for the telepresence robot, all works. But when I drop in the following line in the newly created project, it compiles with the warning that hServoModule is deprecated?

hServoModule.servo1.setWidth(1500);

Never mind, I found the deprecation statement in peripherals.h, code should be:

hServo.servo1.setWidth(1500):

2 Likes