Skip to content

Commit

Permalink
fix linux compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Jul 18, 2024
1 parent c0f3894 commit 7ee90d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/vision/port/linux/maix_rtsp_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ namespace maix::rtsp
return region.update_canvas();
}

err::Err Rtsp::del_region(rtsp::Region *region) {
err::check_null_raise(region, "The region object is NULL");

return err::ERR_NOT_IMPL;
}

err::Err Rtsp::draw_rect(int id, int x, int y, int width, int height, image::Color color, int thickness) {
return err::ERR_NOT_IMPL;
}
Expand Down
2 changes: 2 additions & 0 deletions components/vision/port/maixcam/maix_display_mmf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ namespace maix::display
float max_duty = 50;
_bl_pwm->duty(value * max_duty / 100.0);
_bl_pwm->disable();
if(value == 0)
return;
_bl_pwm->enable();
}

Expand Down

0 comments on commit 7ee90d7

Please sign in to comment.