Commit Graph

7625 Commits

Author SHA1 Message Date
Léa Saviot
b5f4a7b3f0 [poincare] Simplify MatrixLayout code
Change-Id: I4bfcf3da94296b8314ff47a1a71dbc79150a4027
2018-05-09 13:32:27 +02:00
Léa Saviot
7e9bbe3aea [ion] Add event names for Shift+Up/Down/Left/Right
Change-Id: I03cd5707ea2d9e460ed925009442e15d38572798
2018-05-09 12:17:30 +02:00
Léa Saviot
dcc75dbc7d [poincare] Remove overriding method in Matrix.
Adding GreySquares when moving the cursor inside a matrix is already
handled by ExpressionLayout.

Change-Id: I6e8b4b5dab54c5f6f3528509fd52e9694991e3fb
2018-05-09 12:01:34 +02:00
Léa Saviot
4692f0a6f4 [poincare] Fix collapsing layout bug.
Change-Id: I6b1763e54e44645ab83c8be82ed6d5fcfc29fc91
2018-05-09 11:35:58 +02:00
Léa Saviot
0ea3d488f1 [escher] Clean code in expression_layout_field.cpp
Change-Id: I80a7d8445209efece8c0f293d5761b04d087b884
2018-05-09 11:12:30 +02:00
Léa Saviot
d56f94224f [escher] Fix cursor position when copy pasting in ELField
Change-Id: I7408e89ceb6ef6e7bce7e47dc6b3d2a4945cfdbf
2018-05-09 11:10:35 +02:00
Romain Goyet
7851aa6fff [ion/device] Remove useless delays in the Flash operations
The datasheet advises to wait for BSY to be cleared before performing
any operation on the Flash. That being said, in the only two cases where
BSY could be set in the first place (writing to or erasing the flash),
we already wait for it to be cleared. There's therefore no need to
double check it afterwards.
2018-05-09 11:03:01 +02:00
Romain Goyet
306904aec2 [ion/device] Proper flash cache flushing (fix #439) 2018-05-09 11:03:01 +02:00
Romain Goyet
26edd70bd7 [ion] Re-enable the Flash I/D cache after flushing it 2018-05-09 11:03:01 +02:00
Romain Goyet
6556751d59 [ion] Use a distinct Device::Flash namespace 2018-05-09 11:03:01 +02:00
Léa Saviot
9af3d378d1 [apps] Fix CondensedSumLayout created with a nullptr child
Change-Id: Ie6d4c6408a45a9cdf617b8cba988667c17f4cc36
2018-05-09 09:55:58 +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
Léa Saviot
4de2ae5353 [poincare] Fix virtualty of ScrollView::setBackgroundColor and TopMargin
Change-Id: Id15d2b233b0a0f11435ab8f41a142eeca4fcec05
2018-05-08 17:52:54 +02:00
Léa Saviot
1e78f02ffc [poincare] Fix blackbox bug about variable initialization
Change-Id: I8538ce9aa75ecee5f9e7f572be13fc590c994db7
2018-05-08 17:48:47 +02:00
Léa Saviot
7b6fdf6a1c [escher] Fix ScrollableView content view size.
Change-Id: I531236e7527b3922dac81067d41024e0c5d6bf88
2018-05-08 17:32:55 +02:00
Léa Saviot
3aeb5b9eef [poincare] Fix Layout Field vertical margins.
Change-Id: I36c90574aca915d0f1cb803948b8c85cd28852ab
2018-05-08 16:24:13 +02:00
Léa Saviot
2fd332fba5 [poincare] Fix background fill in ExpressionField.
Change-Id: If12a043525cafe7b98015df88ad144057a5ffdcb
2018-05-08 15:43:41 +02:00
Léa Saviot
3b582a2e46 Merge branch 'SaisieJolie30Apr' into SaisieJolie8May
Change-Id: Ia4196119fc56c5bc3423aea752b49f3f7ba39499
2018-05-08 15:17:51 +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
1785288e19 [ion] Clean an unused file 2018-05-08 14:31:35 +02:00
Romain Goyet
bc3c517084 [ion] Discard useless small file 2018-05-08 14:31:35 +02:00
Romain Goyet
f4c5e4b701 [ion] Remove unneeded files 2018-05-08 14:31:35 +02:00
Romain Goyet
6d214a79b4 [ion] Sort the device/usb folder 2018-05-08 14:31:35 +02:00
Romain Goyet
3e57d75a71 [ion] Add a VBLANK command to the bench 2018-05-08 14:16:18 +02:00
Romain Goyet
a6cc87183e [ion] Tell when on the bench 2018-05-08 14:16:18 +02:00
Léa Saviot
4d259442b5 [build/ion] Remove code used for debug.
Change-Id: I41802f79e7103204991edf38dff94b1c0a3a23ea
2018-05-08 14:13:34 +02:00
Léa Saviot
9b1d0e67c0 [poincare] Clearer ExpressionLayout::indexOfChild
Change-Id: Ibe7f1b616ccd3b7951e6334682d28116d3234f77
2018-05-08 12:04:31 +02:00
Léa Saviot
8d5c83fef3 [poincare] Fix/add assertions
Change-Id: I642bf20ae2bb75ea5a65898e11390f5337363b3b
2018-05-08 12:03:55 +02:00
Léa Saviot
bf3b26439d [poincare] Coding style
Change-Id: I0de1e558b3b9483456ccca5b8d42b6d0b9f2e30e
2018-05-08 12:03:33 +02:00
Léa Saviot
3fcfbcf833 [poincare] Fix DynamicLayoutHierarchy::mergeChildrenAtIndex
Change-Id: I579d3daf9791e06474a66071b2b2be0908a8cf02
2018-05-08 12:02:21 +02:00
Léa Saviot
4a0fe345e2 [ion/dfu_interface] De-activate Flash Programming after write operations
Change-Id: I2a9395a4f7f6e70f0d7981ed07684f230678c212
2018-05-08 10:55:40 +02:00
Léa Saviot
c59778a01e [ion/dfu_interface] Check BSY bit before each CR register access
Change-Id: I4999906c694fed30e6101c8c5e1f33f1957db397
2018-05-08 10:55:40 +02:00
Jean-Baptiste Boric
92b9fc53f3 Use saner default debug flags 2018-05-07 21:05:30 +02:00
Léa Saviot
66d2eb0e7a [poincare] Handle MultiplicationSign in ExpressionLayoutCursor::insertText
Change-Id: Ie2dd1c48cedbb3f80eac4db1ff9ffeeefb1ede71
2018-05-07 14:24:44 +02:00
Léa Saviot
6e409cace6 [poincare] Handle Charset::Empty during 2D text insertion
Change-Id: Ie3aee986045d0e4eced06b909ab3bcf22f31ec59
2018-05-07 14:22:34 +02:00
Léa Saviot
f660c7750c [ion] Fix linear mode cursor position when pressing "cos" for instance
Change-Id: I7a39f875cc85eedc336818fcfe5b125c74a8960c
2018-05-07 14:14:02 +02:00
Émilie Feral
67cfb93987 [poincare] PrintFloat: fix error due to float/double prevision
floor(abs(100000))*pow(10,-5)= 0.9999999 instead of 1
2018-05-04 17:32:23 +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
Émilie Feral
11ae2da6c5 [poincare] Fix tests: randint(a,b) might return b 2018-05-04 17:28:27 +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
29aca1a7dc [escher] Add a BankViewController 2018-05-04 17:04:24 +02:00
Léa Saviot
4576b88f81 [escher] Fix cursor display in ELField, when the cursor is on the right
Change-Id: I44e9bc53440b4ce7b074a94b733a636d3582ac3c
2018-05-02 14:46:10 +02:00
Léa Saviot
7ea0ddb2a7 [escher] OnFinishEditing, clear the layout.
The layout should never be deleted + this fixes the ELField size that
might stay big once emptied (e.g. 1 / 2 OK would leave an empty ELField,
but with a big vertical size).

Change-Id: I3971115d3bad48ce36a449e01bd12d5d8229ca4c
2018-05-02 11:05:08 +02:00
Léa Saviot
21f083d926 [escher] Fix Graph/Sequence cursor display in 2D edition.
When inserting a layout, the ELField was not put in Edition mode and the
cursor did not appear.

Change-Id: I47154829bda4a51201a4b1417ce86cae4099c1b9
2018-05-02 10:56:32 +02:00