From 120772a0e8873b100c9d0dd530e3e7ee8333e8aa Mon Sep 17 00:00:00 2001 From: M4x1m3 Date: Sun, 3 Nov 2019 21:36:24 +0100 Subject: [PATCH 1/4] [build] Fixed spaces issues with USERNAME variable. --- apps/Makefile | 2 +- build/config.mak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/Makefile b/apps/Makefile index 4bba98235..8696bef5e 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -45,7 +45,7 @@ snapshots_count = $(words $(apps)) snapshot_includes = $(foreach i,$(app_headers),-include $(i) ) epsilon_app_names = '$(foreach i,${EPSILON_APPS},"$(i)", )' -$(call object_for,apps/apps_container_storage.cpp apps/apps_container.cpp apps/main.cpp): CXXFLAGS += $(snapshot_includes) -DAPPS_CONTAINER_APPS_DECLARATION="$(apps_declaration)" -DAPPS_CONTAINER_SNAPSHOT_DECLARATIONS="$(snapshots_declaration)" -DAPPS_CONTAINER_SNAPSHOT_CONSTRUCTORS="$(snapshots_construction)" -DAPPS_CONTAINER_SNAPSHOT_LIST="$(snapshots_list)" -DAPPS_CONTAINER_SNAPSHOT_COUNT=$(snapshots_count) -DEPSILON_APPS_NAMES=$(epsilon_app_names) -DUSERNAME=${USERNAME} +$(call object_for,apps/apps_container_storage.cpp apps/apps_container.cpp apps/main.cpp): CXXFLAGS += $(snapshot_includes) -DAPPS_CONTAINER_APPS_DECLARATION="$(apps_declaration)" -DAPPS_CONTAINER_SNAPSHOT_DECLARATIONS="$(snapshots_declaration)" -DAPPS_CONTAINER_SNAPSHOT_CONSTRUCTORS="$(snapshots_construction)" -DAPPS_CONTAINER_SNAPSHOT_LIST="$(snapshots_list)" -DAPPS_CONTAINER_SNAPSHOT_COUNT=$(snapshots_count) -DEPSILON_APPS_NAMES=$(epsilon_app_names) -DUSERNAME="$(USERNAME)" # I18n file generation diff --git a/build/config.mak b/build/config.mak index fa186fab5..6996f59da 100644 --- a/build/config.mak +++ b/build/config.mak @@ -25,7 +25,7 @@ include build/toolchain.$(TOOLCHAIN).mak SFLAGS += -DDEBUG=$(DEBUG) ifdef USERNAME - SFLAGS += -DUSERNAME=$(USERNAME) + SFLAGS += -DUSERNAME="$(USERNAME)" endif SFLAGS += -DEPSILON_GETOPT=$(EPSILON_GETOPT) SFLAGS += -DESCHER_LOG_EVENTS_BINARY=$(ESCHER_LOG_EVENTS_BINARY) From 34a64adebc6ff337c4ce6bde53231bd03a74d679 Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 3 Nov 2019 21:54:28 +0100 Subject: [PATCH 2/4] Update config.mak --- build/config.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/config.mak b/build/config.mak index 6996f59da..d21cdcaab 100644 --- a/build/config.mak +++ b/build/config.mak @@ -4,7 +4,7 @@ PLATFORM ?= device DEBUG ?= 0 EPSILON_VERSION ?= 12.0.0 -EPSILON_CUSTOM_VERSION ?= 1.13.5-0 +EPSILON_CUSTOM_VERSION ?= 1.13.6-0 # USERNAME ?= N/A # Valid values are "none", "update", "beta" EPSILON_APPS ?= calculation rpn graph code statistics probability solver atom sequence regression settings From 3c97dfda429c07570abcf4dfa41c416842219dc9 Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 3 Nov 2019 21:56:23 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5a0489998..a270ac6b3 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ First of all, follow **step 1** [here](https://www.numworks.com/resources/engine git clone --recursive https://github.com/Omega-Numworks/Omega.git cd Omega make MODEL=n0100 clean -make MODEL=n0100 USERNAME={Your name, max 15 characters; for spaces, type "\ "} -j4 +make MODEL=n0100 USERNAME="{Your name, max 15 characters}" -j4 make MODEL=n0100 epsilon_flash ``` @@ -43,7 +43,7 @@ make MODEL=n0100 epsilon_flash git clone --recursive https://github.com/Omega-Numworks/Omega.git cd Omega make clean -make USERNAME={Your name, max 15 characters; for spaces, type "\ "} -j4 +make USERNAME="{Your name, max 15 characters}" -j4 make epsilon_flash ``` From b68f801e920f474d40c18c5576d804dc3d4c5ba4 Mon Sep 17 00:00:00 2001 From: M4x1m3 Date: Sun, 3 Nov 2019 22:14:58 +0100 Subject: [PATCH 4/4] [ion/led] Changed check for exam, fixed #22. --- ion/src/device/n0110/drivers/led.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ion/src/device/n0110/drivers/led.cpp b/ion/src/device/n0110/drivers/led.cpp index d29cc8494..f196187af 100644 --- a/ion/src/device/n0110/drivers/led.cpp +++ b/ion/src/device/n0110/drivers/led.cpp @@ -2,12 +2,14 @@ #include #include +#include + namespace Ion { namespace LED { KDColor updateColorWithPlugAndCharge() { KDColor ledColor = getColor(); - if (ledColor != KDColorRed) { // If exam mode is on, we do not update the LED with the plugged/charging state + if (GlobalPreferences::sharedGlobalPreferences()->examMode() != GlobalPreferences::ExamMode::Activate) { // If exam mode is on, we do not update the LED with the plugged/charging state if (USB::isPlugged()) { ledColor = Battery::isCharging() ? KDColorOrange : KDColorGreen; } else {