// File: jkingan[P]ladyheather/heathui.cpp
// Function: config_enviro_plots(int)
void config_enviro_plots(int enable)
{
if(rcvr_type == TIDE_RCVR) return;

    plot[TEMP1].plot_id = "TEMP1";     // [TC1] -> [FIVE]
    plot[TEMP1].units = degc;
    plot[TEMP1].float_center = 1;

    plot[TEMP2].plot_id = "TEMP2";     // [TC2] -> [FIVE]
    plot[TEMP2].units = degc;
    plot[TEMP2].float_center = 1;

    plot[HUMIDITY].plot_id = "RH";
    plot[HUMIDITY].units = "%";
    plot[HUMIDITY].ref_scale = (DATA_SIZE) 1.0;
    plot[HUMIDITY].float_center = 1;

    plot[PRESSURE].plot_id = "Pres";
    plot[PRESSURE].units = "mbar";
    plot[PRESSURE].ref_scale = (DATA_SIZE) 1.0;
    plot[PRESSURE].float_center = 1;

   if(enable && (rcvr_type == THERMO_RCVR)) {
      plot[HUMIDITY].show_plot = 1;
      plot[PRESSURE].show_plot = 1;
      plot[TEMP1].show_plot = 1;
      plot[TEMP2].show_plot = 1;
      plot[ADC3].show_plot = 1;
      plot[ADC4].show_plot = 1;

      plot[TEMP].show_plot = 0;
   }

   if((rcvr_type == THERMO_RCVR) || ((rcvr_type == TIDE_RCVR) && enviro_mode())) {
      plot[ADC3].plot_id = "ADC3";
      plot[ADC3].units = "V";
      plot[ADC3].ref_scale = (DATA_SIZE) 1.0;
      plot[ADC3].float_center = 1;

      plot[ADC4].plot_id = "ADC4";
      plot[ADC4].units = "V";
      plot[ADC4].ref_scale = (DATA_SIZE) 1.0;
      plot[ADC4].float_center = 1;

      plot[HUMIDITY].plot_color = MAGENTA;
      plot[PRESSURE].plot_color = WHITE;
      plot[TEMP1].plot_color = YELLOW;
      plot[TEMP2].plot_color = RED;
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
leaq 0x22725e(%rip), %rax    # 0x277ab0
cmpq $0x800000, (%rax)       # imm = 0x800000
jne 0x50860
jmp 0x50b15
leaq 0x16c4b9(%rip), %rax    # 0x1bcd20
leaq 0x131f2d(%rip), %rcx    # 0x18279b
movq %rcx, 0xf68(%rax)
leaq 0x16c4a4(%rip), %rax    # 0x1bcd20
leaq 0x16c495(%rip), %rcx    # 0x1bcd18
movq %rcx, 0xf70(%rax)
leaq 0x16c48f(%rip), %rax    # 0x1bcd20
movl $0x1, 0xf84(%rax)
leaq 0x16c47e(%rip), %rax    # 0x1bcd20
leaq 0x123811(%rip), %rcx    # 0x1740ba
movq %rcx, 0x1050(%rax)
leaq 0x16c469(%rip), %rax    # 0x1bcd20
leaq 0x16c45a(%rip), %rcx    # 0x1bcd18
movq %rcx, 0x1058(%rax)
leaq 0x16c454(%rip), %rax    # 0x1bcd20
movl $0x1, 0x106c(%rax)
leaq 0x16c443(%rip), %rax    # 0x1bcd20
leaq 0x131ebd(%rip), %rcx    # 0x1827a1
movq %rcx, 0xd98(%rax)
leaq 0x16c42e(%rip), %rax    # 0x1bcd20
leaq 0x1353da(%rip), %rcx    # 0x185cd3
movq %rcx, 0xda0(%rax)
leaq 0x16c419(%rip), %rax    # 0x1bcd20
movsd 0x11e759(%rip), %xmm0   # 0x16f068
movsd %xmm0, 0xda8(%rax)
leaq 0x16c402(%rip), %rax    # 0x1bcd20
movl $0x1, 0xdb4(%rax)
leaq 0x16c3f1(%rip), %rax    # 0x1bcd20
leaq 0x131e6e(%rip), %rcx    # 0x1827a4
movq %rcx, 0xe80(%rax)
leaq 0x16c3dc(%rip), %rax    # 0x1bcd20
leaq 0x131e5e(%rip), %rcx    # 0x1827a9
movq %rcx, 0xe88(%rax)
leaq 0x16c3c7(%rip), %rax    # 0x1bcd20
movsd 0x11e707(%rip), %xmm0   # 0x16f068
movsd %xmm0, 0xe90(%rax)
leaq 0x16c3b0(%rip), %rax    # 0x1bcd20
movl $0x1, 0xe9c(%rax)
cmpl $0x0, -0x4(%rbp)
je 0x50a08
leaq 0x227125(%rip), %rax    # 0x277ab0
cmpq $0x80000, (%rax)        # imm = 0x80000
jne 0x50a08
leaq 0x16c385(%rip), %rax    # 0x1bcd20
movl $0x1, 0xdb0(%rax)
leaq 0x16c374(%rip), %rax    # 0x1bcd20
movl $0x1, 0xe98(%rax)
leaq 0x16c363(%rip), %rax    # 0x1bcd20
movl $0x1, 0xf80(%rax)
leaq 0x16c352(%rip), %rax    # 0x1bcd20
movl $0x1, 0x1068(%rax)
leaq 0x16c341(%rip), %rax    # 0x1bcd20
movl $0x1, 0x18(%rax)
leaq 0x16c333(%rip), %rax    # 0x1bcd20
movl $0x1, 0x100(%rax)
leaq 0x16c322(%rip), %rax    # 0x1bcd20
movl $0x0, 0x2d0(%rax)
leaq 0x2270a1(%rip), %rax    # 0x277ab0
cmpq $0x80000, (%rax)        # imm = 0x80000
je 0x50a3a
leaq 0x227091(%rip), %rax    # 0x277ab0
cmpq $0x800000, (%rax)       # imm = 0x800000
jne 0x50b15
callq 0x83ad0
cmpl $0x0, %eax
je 0x50b15
leaq 0x16c2df(%rip), %rax    # 0x1bcd20
leaq 0x131d3c(%rip), %rcx    # 0x182784
movq %rcx, (%rax)
leaq 0x16c2ce(%rip), %rax    # 0x1bcd20
leaq 0x141817(%rip), %rcx    # 0x192270
movq %rcx, 0x8(%rax)
leaq 0x16c2bc(%rip), %rax    # 0x1bcd20
movsd 0x11e5fc(%rip), %xmm0   # 0x16f068
movsd %xmm0, 0x10(%rax)
leaq 0x16c2a8(%rip), %rax    # 0x1bcd20
movl $0x1, 0x1c(%rax)
leaq 0x16c29a(%rip), %rax    # 0x1bcd20
leaq 0x131cfc(%rip), %rcx    # 0x182789
movq %rcx, 0xe8(%rax)
leaq 0x16c285(%rip), %rax    # 0x1bcd20
leaq 0x1417ce(%rip), %rcx    # 0x192270
movq %rcx, 0xf0(%rax)
leaq 0x16c270(%rip), %rax    # 0x1bcd20
movsd 0x11e5b0(%rip), %xmm0   # 0x16f068
movsd %xmm0, 0xf8(%rax)
leaq 0x16c259(%rip), %rax    # 0x1bcd20
movl $0x1, 0x104(%rax)
leaq 0x16c248(%rip), %rax    # 0x1bcd20
movl $0xd, 0xdb8(%rax)
leaq 0x16c237(%rip), %rax    # 0x1bcd20
movl $0xf, 0xea0(%rax)
leaq 0x16c226(%rip), %rax    # 0x1bcd20
movl $0xe, 0xf88(%rax)
leaq 0x16c215(%rip), %rax    # 0x1bcd20
movl $0xc, 0x1070(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)