Commit Graph

161 Commits

Author SHA1 Message Date
Émilie Feral
e39172a7cd [apps] AppsContainer: 'shutdownDueToLowBattery' can be call when the
battery is actually LOW (due to some oscillations between LOW and
EMPTY). Handle that case
2019-04-18 14:07:03 +02:00
Émilie Feral
d9982a11a9 [apps] Redraw battery pictogram after a reset 2019-04-15 09:52:45 +02:00
Émilie Feral
da12904873 [ion] Dim Brightness before shutting down when the battery low 2019-04-12 15:16:53 +02:00
Léa Saviot
8ac2c80625 [apps/settings] Reload the title bar when changing language
Before, the "Settings" title would not be immediately translated into
the new language.
2019-04-12 15:16:52 +02:00
Léa Saviot
a7208ade0f [apps] Container::switchTo returns a bool (false if could not switch) 2019-01-22 14:57:51 +01:00
Léa Saviot
4128ebb864 [escher] In container, check the app can be exited before switching apps 2019-01-22 14:57:51 +01:00
Léa Saviot
e5f0959239 [poincare] Static Expression methods start with uppercase 2019-01-10 11:42:05 +01:00
Léa Saviot
58f94f5e5f [apps/code] Check that app can be exited before switching to DFU
This fixes the following crash: create a script which contains only
"input()". Execute it, then while in the input, plug in the calculator.
When un-plugging it, the device crashes.
2019-01-07 13:36:01 +01:00
Émilie Feral
10556b477b [apps] Tidy snapshots when leaving the app following an exception 2018-12-03 13:47:52 +01:00
Léa Saviot
3b81f9bedc [apps] Remove the poincare circuit breaker on emscripten 2018-11-28 11:17:52 +01:00
Léa Saviot
a3ff266635 [apps] Create an exception checkpoint before switching to the first app 2018-11-28 11:17:52 +01:00
Émilie Feral
916493a4d2 [apps] Reset (exam mode) delete all records at once 2018-11-23 12:04:10 +01:00
Émilie Feral
4459945fe9 [apps] When entering in exam mode (reset), destroy all recorded
expression variables
2018-11-23 12:04:10 +01:00
Léa Saviot
94721f08df [apps] Full pool/storage memory warning messages 2018-11-23 12:04:04 +01:00
Léa Saviot
6fa7816789 [escher] Warning pop-ups may have two lines 2018-11-23 12:04:04 +01:00
Léa Saviot
ecb58dea71 [apps] Renamen MemoryFull i18N messages 2018-11-23 12:04:04 +01:00
Léa Saviot
91d6955ddf [apps] The apps displays a warning when storage is full 2018-11-23 12:04:04 +01:00
Léa Saviot
9bfaed583d [apps/escher/ion] Remove Graph memoized models on storage change 2018-11-23 12:04:03 +01:00
Léa Saviot
1517b57cc8 [apps] AppsContainer is a Ion::StorageDelegate 2018-11-23 12:04:03 +01:00
Émilie Feral
286530f78f [apps] First version of VariableBoxController 2018-11-23 12:04:00 +01:00
Ecco
74d4f397ac Merge pull request #626 from zardam/utime_module
utime module
2018-11-15 17:04:08 +01:00
Romain Goyet
a3d6d6ddd6 [ion/timing] Cleanup 2018-11-15 16:19:07 +01:00
Léa Saviot
062ff5af1a [apps] Update the battery level after an update 2018-11-15 10:26:34 +01:00
Damien Nicolet
24630011b1 [code] keep only CPython equivalent functions in utime module 2018-11-10 00:00:03 +01:00
Damien Nicolet
9b818bd963 [ion] fix sleep functions in emscripten build 2018-11-09 01:36:38 +01:00
Lionel Debroux
70a8d06cfe [apps, poincare] Optimize the preferences singletons' usage by removing superfluous checks in the setters, and performing manual CSE in the callers.
Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
2018-10-23 11:49:09 +02:00
Émilie Feral
1dd734b8e6 [on-boarding] Improve beta pop-up layout 2018-10-16 11:09:50 +02:00
Émilie Feral
3f711da8e4 [Makefile] Create a build option: EPSILON_BOOT_PROMPT that can be
'update' or 'beta' to display a prompt informing about new update or
beta version
2018-10-16 11:09:50 +02:00
Émilie Feral
c8d7ee46d9 [on-boarding] Delete specialize PopUpController 2018-10-16 11:09:50 +02:00
Émilie Feral
0ee0e87637 [apps] GlobalPreferences: change name showUpdatePopUp --> showPopUp 2018-10-16 11:09:50 +02:00
Émilie Feral
b4143bb276 [on_boarding] Add EPSILON_SOFTWARE_UPDATE_PROMPT flag to build
UpdateController only when required
2018-10-16 11:09:50 +02:00
Léa Saviot
5b5211be24 [poincare] Tidy Integer buffer on Poincare exception 2018-09-25 10:42:47 +02:00
Léa Saviot
f5682a4f30 [apps] Exception should reset active snapshot only if active app exists 2018-09-19 15:50:48 +02:00
Léa Saviot
a4d79332ea [poincare] Fix Warning message exit on special keys
We want the memory full warning to be exited only on OK, EXE, ... but
Syntax warning (for instance) to be exited on any key pressed
2018-09-14 17:59:14 +02:00
Léa Saviot
9a289dc7eb [poincare] When app memory exception, got to Home app 2018-09-14 14:49:40 +02:00
Léa Saviot
6deaef49b8 [poincare] When memory exception, stay in the app and display popup 2018-09-14 13:43:54 +02:00
Émilie Feral
c95c3145bc Merge remote-tracking branch 'github/master' into Tree 2018-09-13 17:03:31 +02:00
Léa Saviot
f240899fc7 [poincare] Put the exception handler before Container::run 2018-09-13 16:02:58 +02:00
Romain Goyet
9b177e8501 [poincare] use Poincare::ExceptionCheckpoint to handle exceptions 2018-09-12 14:11:20 +02:00
Léa Saviot
679f9815c1 [poincare] Put setjmp in apps_container and in Expression::parse 2018-09-05 14:37:52 +02:00
Émilie Feral
7d358a2646 Merge branch 'rtc_part1' of https://github.com/boricj/epsilon into exam_mode_boricj 2018-08-22 17:20:04 +02:00
Émilie Feral
aefcf5262d [apps] On a plugging event, the brightness is set a its prefered level instead
of the maximum level
2018-05-09 09:51:14 +02:00
Romain Goyet
339ec330c1 [apps] Don't SU prompt in the hardware test 2018-05-04 17:04:24 +02:00
Romain Goyet
69545b9cf9 [apps] Handle Ion::Events::USBPlug in processEvent
This gives apps a chance to catch this event. This is used in the
hardware test.
2018-05-04 17:04:24 +02:00
Léa Saviot
e846e31029 [usb] Clear interrupt on "false" ENUMDNE
Fixes a bug where the device would not get enumerated even if the plug
state was detected (an ENUMDNE interrupt had not been cleared, thus the
new enumeration attempt was not detected).

Change-Id: I19622221fc077965ed3cab5322944e4c2c89fde4
2018-04-16 10:48:11 +02:00
Léa Saviot
2a251626a6 [apps] When leaving USB mode, go to the last active app.
Change-Id: I4c6276525f119cdc9e45bac24629c6ec4ea7b0fe
2018-04-11 11:01:08 +02:00
Léa Saviot
28b9e8c301 [apps] If USB connection stops onBoardingApp, relaunch it when leaving USB.
Change-Id: I16274134699ff708bf61d64471f6a0ed870ec2ee
2018-04-11 09:54:44 +02:00
Léa Saviot
f0532b7f97 [apps] Dismiss the Exam mode before connecting the calculator.
Change-Id: If9754841aaa17c677a451387c8c7ec43926890da
2018-04-10 11:30:15 +02:00
Léa Saviot
0441fa5119 [usb] Fix rad/deg that did not appear when plugging USB while onboarding
Refresh the apps container preferrences before on-boarding app: this
way, if the calculator is plugged during the onboarding, the
"deg/rad" symbol will still appear after the calculator in unplugged.

Change-Id: Iafa6a94ba725285712e86ab37c8dde54b46d3706
2018-04-06 14:31:49 +02:00
Léa Saviot
ee3f947757 [usb] Enable/disable USB when the cable is plugged/un-plugged.
Change-Id: I8aecf43b73ba5bb5c20e38ee2251b24ecb16f366
2018-04-06 14:31:48 +02:00