This commit is contained in:
SeekDaSky 2017-05-19 09:35:50 +02:00
parent c8da1b3ba6
commit 710a5def49
2 changed files with 11 additions and 1 deletions

Binary file not shown.

View File

@ -47,11 +47,21 @@ public class PlaneContainer {
//System.out.println("Processing "+nbrPlane+" planes");
if(this.expectedFlags != flag){
System.out.println("\033[5;37;41m Plane could not apply data \033[0m");
if((this.expectedFlags&(byte)0x02) == 2 && (flag&(byte)0x02) != 2){
System.out.println("\033[5;37;41m Could not apply cap \033[0m");
}
if((this.expectedFlags&(byte)0x04) == 4 && (flag&(byte)0x04) != 4){
System.out.println("\033[5;37;41m Could not apply speed \033[0m");
}
if((this.expectedFlags&(byte)0x08) == 8 && (flag&(byte)0x08) != 8){
System.out.println("\033[5;37;41m Could not apply alt \033[0m");
}
System.out.println("\033[5;37;41m One or more fields could not be updated \033[0m");
if((flag&(byte)0x10) == 1){
System.out.println("\033[5;37;41m Plane crashed gracefully \033[0m");
}
try {
this.expectedFlags = 0x01;
Thread.sleep(2000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block