Demo entry 6760010

switch

   

Submitted by anonymous on Sep 06, 2018 at 08:46
Language: C. Code size: 858 Bytes.

        if (glCardPresent[1])
        {
            switch (devInfo[1].cardState)
            {
                case CY_FX_RAID_CARD_STATE_UNDEFINED:
                    raidStatus.s1State = SD_STATE_UNDEFINED;
                    break;
                case CY_FX_RAID_CARD_STATE_INIT:
                    raidStatus.s1State = SD_STATE_INITIALIZING;
                    break;
                case CY_FX_RAID_CARD_STATE_ACTIVE:
                    raidStatus.s1State = SD_STATE_ACTIVE;
                    break;
                case CY_FX_RAID_CARD_STATE_CONFIGURED:
                case CY_FX_RAID_CARD_STATE_IGNORED:
                case CY_FX_RAID_CARD_STATE_FAILED:
                    raidStatus.s1State = SD_STATE_UNHEALTHY;
                    break;
                default:
                    break;
            }
        }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).