Skip to content

Commit 4f68bb8

Browse files
committed
Fix PWMSensor reorder warning
1 parent ce53a8a commit 4f68bb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Inc/ST-LIB_LOW/Sensors/PWMSensor/PWMSensor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class PWMSensor {
2626

2727
template<class Type>
2828
PWMSensor<Type>::PWMSensor(Pin &pin, Type &frequency, Type &duty_cycle) :
29-
frequency(&frequency), duty_cycle(&duty_cycle) {
29+
duty_cycle(&duty_cycle), frequency(&frequency) {
3030
id = InputCapture::inscribe(pin);
3131
Sensor::inputcapture_id_list.push_back(id);
3232
}

0 commit comments

Comments
 (0)