mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-11 22:16:56 +03:00
Few typing corrections and translations
This commit is contained in:
@@ -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, "unsupport format");
|
||||
ESP_LOGW(TAG, "unsupported 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 more than 0xff");
|
||||
ESP_LOGE(TAG, "mask should not be 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 more than 0xff");
|
||||
ESP_LOGE(TAG, "mask should not be more than 0xff");
|
||||
} else {
|
||||
ret = read_reg(sensor->slv_addr, reg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user