diff --git a/libraries/DataFlash/DataFlash_APM1.cpp b/libraries/DataFlash/DataFlash_APM1.cpp index f8a97bbe88..9fdff12486 100644 --- a/libraries/DataFlash/DataFlash_APM1.cpp +++ b/libraries/DataFlash/DataFlash_APM1.cpp @@ -93,7 +93,7 @@ void DataFlash_APM1::Init(const struct LogStructure *structure, uint8_t num_type // init to zero df_NumPages = 0; - hal.gpio->pinMode(DF_RESET,GPIO_OUTPUT); + hal.gpio->pinMode(DF_RESET,HAL_GPIO_OUTPUT); // Reset the chip hal.gpio->write(DF_RESET,0); hal.scheduler->delay(1); diff --git a/libraries/DataFlash/DataFlash_APM2.cpp b/libraries/DataFlash/DataFlash_APM2.cpp index ee076aec6c..3f21254e5e 100644 --- a/libraries/DataFlash/DataFlash_APM2.cpp +++ b/libraries/DataFlash/DataFlash_APM2.cpp @@ -93,8 +93,8 @@ void DataFlash_APM2::Init(const struct LogStructure *structure, uint8_t num_type // init to zero df_NumPages = 0; - hal.gpio->pinMode(DF_RESET, GPIO_OUTPUT); - hal.gpio->pinMode(DF_CARDDETECT, GPIO_INPUT); + hal.gpio->pinMode(DF_RESET, HAL_GPIO_OUTPUT); + hal.gpio->pinMode(DF_CARDDETECT, HAL_GPIO_INPUT); // Reset the chip hal.gpio->write(DF_RESET,0);