mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
strncpy is not safe + memory optimization
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
static const char *TAG = "led";
|
||||
|
||||
static struct led_s {
|
||||
static EXT_RAM_ATTR struct led_s {
|
||||
gpio_num_t gpio;
|
||||
bool on;
|
||||
int onstate;
|
||||
@@ -40,7 +40,7 @@ static struct led_s {
|
||||
TimerHandle_t timer;
|
||||
} leds[MAX_LED];
|
||||
|
||||
static struct {
|
||||
static EXT_RAM_ATTR struct {
|
||||
int gpio;
|
||||
int active;
|
||||
int pwm;
|
||||
|
||||
Reference in New Issue
Block a user