| 181 | } |
| 182 | |
| 183 | GCodeResult FansManager::SetFanValue(size_t fanNum, float speed, const StringRef& reply) noexcept |
| 184 | { |
| 185 | auto fan = FindFan(fanNum); |
| 186 | if (fan.IsNotNull()) |
| 187 | { |
| 188 | return fan->SetPwm(speed, reply); |
| 189 | } |
| 190 | reply.printf("Fan number %u not found", fanNum); |
| 191 | return GCodeResult::error; |
| 192 | } |
| 193 | |
| 194 | // Update the PWM of the specified fan, returning the PWM change |
| 195 | float FansManager::SetFanValue(size_t fanNum, float speed) noexcept |
no test coverage detected