Reversed the changes in the directory of the esp32-cam: /components/esp32-camera-master upon request from jomjol

This commit is contained in:
Cristian
2022-09-21 23:42:02 +02:00
parent 6938299b72
commit 7d8cdc79f2
5 changed files with 17 additions and 17 deletions

View File

@@ -160,7 +160,7 @@ static int set_pixformat(sensor_t *sensor, pixformat_t pixformat)
ret = set_reg_bits(sensor->slv_addr, 0x24, 0, 0x0f, 2); //yuv422 Y Cb Y Cr
break;
default:
ESP_LOGW(TAG, "unsupported format");
ESP_LOGW(TAG, "unsupport format");
ret = -1;
break;
}
@@ -330,7 +330,7 @@ static int get_reg(sensor_t *sensor, int reg, int mask)
{
int ret = 0;
if (mask > 0xFF) {
ESP_LOGE(TAG, "mask should not be more than 0xff");
ESP_LOGE(TAG, "mask should not more than 0xff");
} else {
ret = read_reg(sensor->slv_addr, reg);
}
@@ -344,7 +344,7 @@ static int set_reg(sensor_t *sensor, int reg, int mask, int value)
{
int ret = 0;
if (mask > 0xFF) {
ESP_LOGE(TAG, "mask should not be more than 0xff");
ESP_LOGE(TAG, "mask should not more than 0xff");
} else {
ret = read_reg(sensor->slv_addr, reg);
}