mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
More shrink of safeboot (#21333)
* remove crash recorder from safeboot * small refactor * safeboot more shrink
This commit is contained in:
parent
9b8cd42e5f
commit
9168f7b198
@ -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;
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user