[ion] LED changes color on charging event only for N0110 model

This commit is contained in:
Émilie Feral
2019-06-18 15:45:19 -04:00
parent f99ea4b5f6
commit 2d8f98942e
6 changed files with 21 additions and 1 deletions

View File

@@ -25,7 +25,6 @@ src += $(addprefix ion/src/shared/, \
crc32_eat_byte.cpp \
decompress.cpp \
events.cpp \
led.cpp \
platform_info.cpp \
storage.cpp \
unicode/utf8_decoder.cpp\

View File

@@ -1,5 +1,6 @@
ion_device_src += $(addprefix ion/src/device/n0100/drivers/, \
board.cpp \
led.cpp \
power.cpp \
reset.cpp \
)

View File

@@ -0,0 +1,15 @@
#include <ion/led.h>
#include <ion/battery.h>
#include <ion/usb.h>
namespace Ion {
namespace LED {
KDColor updateColorWithPlugAndCharge() {
/* Prevent updating LED color with charging status as the end of charge
* current is never detected on N0100 model. */
return KDColorBlack;
}
}
}

View File

@@ -1,6 +1,7 @@
ion_device_src += $(addprefix ion/src/device/n0110/drivers/, \
board.cpp \
cache.cpp \
led.cpp \
power.cpp \
reset.cpp \
)

View File

@@ -11,5 +11,9 @@ void setColor(KDColor c) {}
void setBlinking(uint16_t period, float dutyCycle) {}
KDColor updateColorWithPlugAndCharge() {
return KDColorBlack;
}
}
}