Complete the 'horizontal_reference' rename

This commit is contained in:
Jeff Epler 2021-04-20 11:33:32 -05:00
parent 5c5736ee1e
commit 4dcbdac97e
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ void common_hal_imagecapture_parallelimagecapture_construct(imagecapture_paralle
// Now we know we can allocate all pins
self->data_count = data_count;
self->vertical_sync = vertical_sync ? vertical_sync->number : NO_PIN;
self->horizontal_reference = horizontal_reference ? vertical_sync->number : NO_PIN;
self->horizontal_reference = horizontal_reference ? horizontal_reference->number : NO_PIN;
gpio_set_pin_direction(PIN_PCC_CLK, GPIO_DIRECTION_IN);
gpio_set_pin_pull_mode(PIN_PCC_CLK, GPIO_PULL_OFF);
gpio_set_pin_function(PIN_PCC_CLK, GPIO_PIN_FUNCTION_PCC);

View File

@ -30,5 +30,5 @@
struct imagecapture_parallelimagecapture_obj {
mp_obj_base_t base;
uint8_t data_pin, data_clock, vertical_sync, horizontal_sync, data_count;
uint8_t data_pin, data_clock, vertical_sync, horizontal_reference, data_count;
};