Commit Graph

1715 Commits

Author SHA1 Message Date
Romain Goyet
c091d1f59d [apps/code] Add an EditorView that has a gutter 2018-05-09 17:46:09 +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
Émilie Feral
7bc5142c8f [hardware test] Avoid passing battery test if the level is "somewhere in
between"
2018-05-09 09:50:56 +02:00
Émilie Feral
71b972ceb1 [sequence] Decrease sequence graph resolution (2 dots per pixel instead
of 5)
2018-05-08 14:45:23 +02:00
Émilie Feral
8a6c06367e [home] Fix number of rows instead of fixing number of columns 2018-05-08 14:44:54 +02:00
Romain Goyet
a29c775663 [ion] Encode the serial number in Base64
Also, expose serialNumber() in Ion and keep "copySerialNumber" in
Ion::Device. This allows the DFU bootloader to remain .bss-free.
2018-05-04 17:31:41 +02:00
Romain Goyet
5d9f66df28 [hardware_test] Get rid of the USB step 2018-05-04 17:04:24 +02:00
Romain Goyet
aa776be032 [hardware_test] Get rid of the reset step 2018-05-04 17:04:24 +02:00
Romain Goyet
339ec330c1 [apps] Don't SU prompt in the hardware test 2018-05-04 17:04:24 +02:00
Romain Goyet
71f9ce3b67 [hardware test] Use a BankViewController
And add a SerialNumberController
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
Romain Goyet
84561a929f [escher] Clean the ScrollView, TableView and SelectableTableView constructors 2018-04-18 18:08:07 +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
Émilie Feral
b566676a76 [apps] Memoize matrix layout displayed in Variable box in global context 2018-04-11 11:53:52 +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
6ae9361b6e [apps/code] Fix all scripts deletion.
Change-Id: I802673f3d6a8ec6643e11c221bb6dbd5c8ab2ef2
2018-04-11 10:04:18 +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
Romain Goyet
382537ccfe Merge branch 'github-master' 2018-04-10 18:28:15 +02:00
Émilie Feral
92d2c42ff8 [apps] Code: allocate the indentation buffer instead of using an
arbitrary value
2018-04-10 17:39:34 +02:00
Romain Goyet
628992680b [ion] Ion::Storage is not a global variable anymore 2018-04-10 15:09:30 +02:00
Romain Goyet
5b379010d8 [apps] Don't make the apps_container_storage a global variable 2018-04-10 15:09:30 +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
Romain Goyet
b691d3d6ed Merge branch 'usb' 2018-04-09 14:48:18 +02:00
Léa Saviot
3e66d51a6e [apps/sequence] Reset first rank when changing sequence type to Explicit
Change-Id: I3f356ebf95f1f81ab4601f0654166f146a505c27
2018-04-09 14:44:20 +02:00
Émilie Feral
31f79c702a [apps] Code: when updating a script name, handle the event 'clear' to
keep '.py'
2018-04-09 14:42:45 +02:00
Émilie Feral
b714d9242e [apps] Code: when in input loop, handle 'up' event 2018-04-09 14:42:26 +02:00
Léa Saviot
bc9a7ec3f7 [apps/on_boarding] Fix Deutsh message for update.
Change-Id: Iced13c5d02ade43db62725a0a4911d2225b0c343
2018-04-06 14:31:49 +02:00
Léa Saviot
898d82532b [apps/usb] Translate "Calculator connected" message.
Change-Id: I225c262ab1af41becb47e29cde0e0a8b4ed97298
2018-04-06 14:31:49 +02:00
Léa Saviot
93744b9844 [apps/on_boarding] Fix typo in spanish update message.
Change-Id: I1389651a6872d0f85523bce82a31b762e642199a
2018-04-06 14:31:49 +02:00
Léa Saviot
50cc2a310b [apps] MessageView for OnBoarding update and USBConnected controllers
Change-Id: I3a775a81a62c408c9d02d98be25518d03fe5f9bf
2018-04-06 14:31:49 +02:00
Léa Saviot
3059f27c00 [apps/code] Remove un-necessary dependency.
Change-Id: I65a7b81b44aa1be6ff064e8fde0af23760fb5d7d
2018-04-06 14:31:49 +02:00
Léa Saviot
55d56b3927 [usb] Send real serial number in the device descriptor.
Change-Id: Ie64f2a0fb03913600c96986dab8171afaa6bf05b
2018-04-06 14:31:49 +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
Léa Saviot
29df2e0acd [apps] Remove USBTimer.
Change-Id: Ibe2f49149ce144f9fd5476d0cc69a97406171ef1
2018-04-06 14:31:48 +02:00
Léa Saviot
de25105f4a [usb] Handle the usb Plugged detection in getEvent.
Change-Id: Idfba5925a7c79c722b0aad3a1c24799b31d88298
2018-04-06 14:31:48 +02:00
Léa Saviot
b67e04214f [apps] Coding style.
Change-Id: I020cc98f87999b69e9c0d969126e9c1ae2f811f2
2018-04-06 14:31:48 +02:00
Léa Saviot
a4d132f0eb [usb] Change calculator connected message.
Change-Id: Ie5b053c33541811d3f6d6a1a2548c0960d634f9a
2018-04-06 14:31:48 +02:00
Léa Saviot
ff82ca26f2 [usb] Enable the USB core on calculator plugged.
Change-Id: I5b8ab068936524e775bb77a4569a2601e5a9844a
2018-04-06 14:31:48 +02:00
Léa Saviot
6a2f300c67 [usb] Share values between MessageController and USBConnectedController
Change-Id: I1f1f7f147adb7fe92baab3df42bb623e6a61893e
2018-04-06 14:31:48 +02:00
Léa Saviot
94847bad63 [usb] Switch application when disconnecting the usb.
Change-Id: Icec8e07c5f2e13a44d2bea34c0a6abc0c3c4ad7c
2018-04-06 14:31:47 +02:00
Léa Saviot
54b0de716d [usb] Switch to the USB application on usb connect.
Change-Id: I822b154544bd8372b3301f34174b1c8bc44b91a3
2018-04-06 14:31:47 +02:00
Léa Saviot
54eff38c34 [usb] USB aplication that displays the link to the workshop.
Change-Id: I8458fe2a7f1eb4f04fc63f9e0b49d251c20f4cb6
2018-04-06 14:31:47 +02:00
Léa Saviot
5e07048bb6 [usb] To exit USB, scan if the usb is plugged or the Back key pressed
Change-Id: If92c0db8be6d07a91582c4a2d4ed0c3927020e43
2018-04-06 14:31:46 +02:00
Léa Saviot
c518d89ca0 [usb] Remove debug blue screen code.
Change-Id: I46c6b5027a5074adb0ec195d5125832ea5fce456
2018-04-06 14:31:45 +02:00
Léa Saviot
b7829a0937 [usb] Change apps and relocate usb stack on ram.
When the device is plugged to a USB host.

Change-Id: I5d7ae3c86cacce509b6ccca2746984f7e806cb49
2018-04-06 14:31:45 +02:00
Émilie Feral
9289928fff [apps] Code: abort script name editing if MenuController exits responder
chain
2018-04-06 10:14:13 +02:00
Zhaofeng Li
6679cb0a20 [apps] Fix exam mode 2018-04-04 13:42:00 +02:00
Émilie Feral
9cadc49264 [apps] Code: Fix autoImportScript to avoid corrupting stack 2018-03-28 10:03:36 +02:00
Émilie Feral
f1ddf1dbf4 Valgrind: uninitialized value, memory leak 2018-03-28 10:02:09 +02:00