Skip to content

Commit 3e44957

Browse files
committed
Fix whitespace and dereference error in espressif FrequencyIn
1 parent a60ad7b commit 3e44957

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ports/espressif/common-hal/countio/Counter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void common_hal_countio_counter_construct(countio_counter_obj_t *self,
2828

2929
// initialize PCNT
3030
CHECK_ESP_RESULT(pcnt_new_unit(&unit_config, &self->unit));
31-
31+
3232
// Set watchpoints at limis, to auto-accumulate overflows.
3333
pcnt_unit_add_watch_point(self->unit, INT16_MIN);
3434
pcnt_unit_add_watch_point(self->unit, INT16_MAX);

ports/espressif/common-hal/frequencyio/FrequencyIn.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ static esp_err_t init_pcnt(frequencyio_frequencyin_obj_t *self) {
4141
if (result != ESP_OK) {
4242
return result;
4343
}
44-
44+
4545
// Set watchpoints at limis, to auto-accumulate overflows.
46-
pcnt_unit_add_watch_point(self->unit, INT16_MIN);
47-
pcnt_unit_add_watch_point(self->unit, INT16_MAX);
46+
pcnt_unit_add_watch_point(self->internal_data->unit, INT16_MIN);
47+
pcnt_unit_add_watch_point(self->internal_data->unit, INT16_MAX);
4848

4949
pcnt_chan_config_t channel_config = {
5050
.edge_gpio_num = self->pin,

0 commit comments

Comments
 (0)