Change method format

This commit is contained in:
manzerbredes 2016-03-27 11:38:55 +02:00
parent d730c93309
commit 72dde0cd93

View file

@ -154,19 +154,16 @@ public class Driver{
}
public void setColor(Color color, Intensity intensity){
public void setColor(Color color, Intensity intensity, Region region){
try {
this.device.sendFeatureReport(this.getReport(1,2,66,Region.LEFT.intValue(),color.intValue(),intensity.intValue(),0,236));
this.device.sendFeatureReport(this.getReport(1,2,66,Region.MIDDLE.intValue(),color.intValue(),intensity.intValue(),0,236));
this.device.sendFeatureReport(this.getReport(1,2,66,Region.RIGHT.intValue(),color.intValue(),intensity.intValue(),0,236));
this.setMode(Mode.NORMAL);
this.device.sendFeatureReport(this.getReport(1,2,66,region.intValue(),color.intValue(),intensity.intValue(),0,236));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public void setMode(Mode mode){
public void commit(Mode mode){
try {
this.device.sendFeatureReport(this.getReport(1,2,65,mode.intValue(),0,0,0,236));
} catch (IOException e) {