mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
lol: Added exception when invalid argument is passed to method
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
fcb36276b7
commit
500e14663b
@ -41,9 +41,7 @@ public class LoL_exampleSample {
|
||||
int x = 0, y = 0;
|
||||
while (true) {
|
||||
// revert pixel
|
||||
short pixel = sensor.getPixel(x, y);
|
||||
pixel = (short) ((pixel == 0) ? 1 : 0);
|
||||
sensor.setPixel(x, y, pixel);
|
||||
sensor.setPixel(x, y, sensor.getPixel(x, y));
|
||||
|
||||
if (++x == 13) {
|
||||
x = 0;
|
||||
|
Reference in New Issue
Block a user