From daf1267ac2d487d62edeecd9b6318a1ab52b010d Mon Sep 17 00:00:00 2001 From: lxowalle Date: Thu, 30 Oct 2025 16:37:34 +0800 Subject: [PATCH] * revert pwm config --- components/peripheral/port/linux_common/maix_pwm.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/components/peripheral/port/linux_common/maix_pwm.cpp b/components/peripheral/port/linux_common/maix_pwm.cpp index b28a6325..6986a139 100755 --- a/components/peripheral/port/linux_common/maix_pwm.cpp +++ b/components/peripheral/port/linux_common/maix_pwm.cpp @@ -214,11 +214,6 @@ namespace maix::peripheral::pwm throw err::Exception(err::Err::ERR_IO, "export pwm failed"); } - if (_pwm_set_duty_cycle(_chip_id, _id_offset, 0) != err::ERR_NONE) - { - throw err::Exception(err::Err::ERR_IO, "set pwm duty_cycle failed"); - } - if (_pwm_set_period(_chip_id, _id_offset, _period_ns) != err::ERR_NONE) { throw err::Exception(err::Err::ERR_IO, "set pwm period failed");