Guest User

Untitled

a guest
Oct 27th, 2023
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.46 KB | None | 0 0
  1.                             byte b6 = MyApplication.ret[5] & 255;
  2.                             byte b7 = MyApplication.ret[18] & 255;
  3.                             byte b8 = MyApplication.ret[8];
  4.                             int i = (MyApplication.ret[b] >> 5) & 1;
  5.                             byte b9 = MyApplication.ret[b] & 1;
  6.                             int i2 = (MyApplication.ret[b] >> 3) & 1;
  7.                             Log.e("isDecimal", "isDecimal=" + i2);
  8.                             int i3 = ((MyApplication.ret[17] >> b) & 1) + (((MyApplication.ret[17] >> 5) & 1) * 2);
  9.                             Log.e("decimal13", "decimal13=" + i3);
  10.                             if (b9 == 0) {
  11.                                 next.put("power_on", Integer.valueOf(C0696R.C0697drawable.power_on_off_gray));
  12.                             } else {
  13.                                 next.put("power_on", Integer.valueOf(C0696R.C0697drawable.power_on_off));
  14.                             }
  15.                            
  16.                             String str2 = BuildConfig.FLAVOR;
  17.                             String str3 = BuildConfig.FLAVOR;
  18.                             if (b6 % 2 == 0) {
  19.                                 if (i2 == 0) {
  20.                                     str2 = (b6 / 2) + ".0+-C";
  21.                                 } else if (i3 == 0) {
  22.                                     str2 = (b6 / 2) + ".1+-C";
  23.                                 } else if (i3 == 1) {
  24.                                     str2 = (b6 / 2) + ".2+-C";
  25.                                 } else if (i3 == 2) {
  26.                                     str2 = (b6 / 2) + ".3+-C";
  27.                                 } else if (i3 == 3) {
  28.                                     str2 = (b6 / 2) + ".4+-C";
  29.                                 }
  30.                             } else if (i2 == 0) {
  31.                                 str2 = (b6 / 2) + ".5+-C";
  32.                             } else if (i3 == 0) {
  33.                                 str2 = (b6 / 2) + ".6+-C";
  34.                             } else if (i3 == 1) {
  35.                                 str2 = (b6 / 2) + ".7+-C";
  36.                             } else if (i3 == 2) {
  37.                                 str2 = (b6 / 2) + ".8+-C";
  38.                             } else if (i3 == 3) {
  39.                                 str2 = (b6 / 2) + ".9+-C";
  40.                             }
  41.                             if (b7 % 2 == 0) {
  42.                                 if (i2 == 0) {
  43.                                     str3 = (b7 / 2) + ".0+-C";
  44.                                 } else if (i3 == 0) {
  45.                                     str3 = (b7 / 2) + ".1+-C";
  46.                                 } else if (i3 == 1) {
  47.                                     str3 = (b7 / 2) + ".2+-C";
  48.                                 } else if (i3 == 2) {
  49.                                     str3 = (b7 / 2) + ".3+-C";
  50.                                 } else if (i3 == 3) {
  51.                                     str3 = (b7 / 2) + ".4+-C";
  52.                                 }
  53.                             } else if (i2 == 0) {
  54.                                 str3 = (b7 / 2) + ".5+-C";
  55.                             } else if (i3 == 0) {
  56.                                 str3 = (b7 / 2) + ".6+-C";
  57.                             } else if (i3 == 1) {
  58.                                 str3 = (b7 / 2) + ".7+-C";
  59.                             } else if (i3 == 2) {
  60.                                 str3 = (b7 / 2) + ".8+-C";
  61.                             } else if (i3 == 3) {
  62.                                 str3 = (b7 / 2) + ".9+-C";
  63.                             }
  64.                             if (b8 == 0) {
  65.                                 next.put("room_temp", str2);
  66.                             }
  67.                             if (b8 == 1 && i == 1) {
  68.                                 next.put("room_temp", str3);
  69.                             }
  70.                             if (b8 == 2) {
  71.                                 if (i == 1) {
  72.                                     if (b6 == 0) {
  73.                                         next.put("room_temp", "--+-C");
  74.                                     } else {
  75.                                         next.put("room_temp", str2);
  76.                                     }
  77.                                 } else if (b7 == 0) {
  78.                                     next.put("room_temp", "--+-C");
  79.                                 } else {
  80.                                     next.put("room_temp", str3);
  81.                                 }
  82.                             }
Advertisement
Add Comment
Please, Sign In to add comment