mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[gpio] Reduce ESP32 memory usage by optimizing struct padding (#9230)
This commit is contained in:
		| @@ -29,9 +29,9 @@ class ESP32InternalGPIOPin : public InternalGPIOPin { | |||||||
|   void attach_interrupt(void (*func)(void *), void *arg, gpio::InterruptType type) const override; |   void attach_interrupt(void (*func)(void *), void *arg, gpio::InterruptType type) const override; | ||||||
|  |  | ||||||
|   gpio_num_t pin_; |   gpio_num_t pin_; | ||||||
|   bool inverted_; |  | ||||||
|   gpio_drive_cap_t drive_strength_; |   gpio_drive_cap_t drive_strength_; | ||||||
|   gpio::Flags flags_; |   gpio::Flags flags_; | ||||||
|  |   bool inverted_; | ||||||
|   // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) |   // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) | ||||||
|   static bool isr_service_installed; |   static bool isr_service_installed; | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user