Skip to content

Commit

Permalink
chore: set the default resolution to 480x480
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnL4 committed Jan 15, 2024
1 parent dd1bcdc commit ac75fcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions porting/himax/we2/el_flash_we2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,10 @@ static int _el_flash_db_erase(long offset, size_t size) {
}

int ret = -1;
for (size_t i = addr; i < size; i += 4096) {
if(i < _el_flash_db_partition_begin)
continue;
if(i >= _el_flash_db_partition_end)
break;
for (size_t i = addr; i < addr + size; i += 4096) {
ret = -1;
if (i < _el_flash_db_partition_begin) continue;
if (i >= _el_flash_db_partition_end) break;
if (hx_lib_spi_eeprom_erase_sector(USE_DW_SPI_MST_Q, i, FLASH_SECTOR) == E_OK) [[likely]]
ret = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion sscma/callback/sensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void set_sensor(const std::string& cmd, uint8_t sensor_id, bool enable, void* ca

// if enable is true, init the camera
if (enable) {
ret = camera->init(240, 240); // TODO: custom resolution
ret = camera->init(480, 480); // TODO: custom resolution
if (ret != EL_OK) [[unlikely]]
goto SensorError;
}
Expand Down

0 comments on commit ac75fcf

Please sign in to comment.