More shrink of safeboot (#21333)

* remove crash recorder from safeboot

* small refactor

* safeboot more shrink
This commit is contained in:
Jason2866 2024-05-03 15:01:31 +02:00 committed by GitHub
parent 9b8cd42e5f
commit 9168f7b198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -407,12 +407,14 @@ void ButtonHandler(void) {
}
#ifdef USE_ADC
#ifndef FIRMWARE_SAFEBOOT
else if (PinUsed(GPIO_ADC_BUTTON, button_index)) {
button = AdcGetButton(Pin(GPIO_ADC_BUTTON, button_index));
}
else if (PinUsed(GPIO_ADC_BUTTON_INV, button_index)) {
button = AdcGetButton(Pin(GPIO_ADC_BUTTON_INV, button_index));
}
#endif // FIRMWARE_SAFEBOOT
#endif // USE_ADC
XdrvMailbox.index = button_index;

View File

@ -17,6 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FIRMWARE_SAFEBOOT
#ifdef USE_ADC
/*********************************************************************************************\
* ADC support for ESP8266 GPIO17 (=PIN_A0) and ESP32 up to 8 channels on GPIO32 to GPIO39
@ -932,3 +934,4 @@ bool Xsns02(uint32_t function) {
}
#endif // USE_ADC
#endif // FIRMWARE_SAFEBOOT