Beispiel #1
0
        /*-----------------*/
        /*----Functions----*/
        /*-----------------*/
        public void get_psdata()
        {
            if (psstatus == 1)
            {
                PS3.ClearTargetInfo();

                //Get from PS3
                cputemp       = PS3.GetTemperatureCELL();
                gputemp       = PS3.GetTemperatureRSX();
                psversion     = PS3.GetFirmwareVersion();
                psversiontype = PS3.GetFirmwareType();

                show_psdata();
            }
            else if (psstatus == 0)
            {
                if (L_cputemp_show.InvokeRequired)
                {
                    L_cputemp_show.Invoke((Action)(() => get_psdata()));
                }

                //Set Values to n/a
                L_cputemp_show.Text  = "n/a";
                L_gputemp_show.Text  = "n/a";
                L_firmware_show.Text = "n/a";
                L_type_show.Text     = "n/a";

                //Status "Not Connected"
                stat_notconnected();
            }
            else
            {
                L_status_show.Text = "Error!";
            }
        }
Beispiel #2
0
        //Functon to show/refresh Data
        public void show_psdata()
        {
            if (L_cputemp_show.InvokeRequired)
            {
                L_cputemp_show.Invoke((Action)(() => show_psdata()));
            }

            //Show Data
            L_cputemp_show.Text  = cputemp;
            L_gputemp_show.Text  = gputemp;
            L_firmware_show.Text = psversion;
            L_type_show.Text     = psversiontype;
        }