mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-11-09 17:04:38 -06:00
* fix camera app bug
This commit is contained in:
@@ -376,6 +376,9 @@ namespace maix::camera
|
||||
|
||||
std::vector<int> get_sensor_size()
|
||||
{
|
||||
if (__sensor_size.size() == 0) {
|
||||
__get_global_info();
|
||||
}
|
||||
return __sensor_size;
|
||||
}
|
||||
|
||||
|
||||
@@ -336,7 +336,11 @@ int app_base_init(void)
|
||||
}
|
||||
}
|
||||
log::info("light_io: %s", light_io.c_str());
|
||||
#if PLATFORM_MAIXCAM2
|
||||
pinmap::set_pin_function(light_io, "GP" + light_io);
|
||||
#else
|
||||
pinmap::set_pin_function(light_io, "GPIO" + light_io);
|
||||
#endif
|
||||
priv.light = new gpio::GPIO(light_io, gpio::Mode::OUT);
|
||||
err::check_null_raise(priv.light, "light gpio open failed");
|
||||
priv.light->low();
|
||||
|
||||
Reference in New Issue
Block a user