IRRemote - How to switch led on?

Hello. I tried to blink with led, when power button is pressed.

this is my code:

#include <IRremote.h>

int RECV_PIN = 11;
char cmd;
IRrecv irrecv(RECV_PIN);
decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void blinkled(int ledpin) {
pinMode(ledpin,OUTPUT);
digitalWrite(ledpin,HIGH);
delay(100);
digitalWrite(ledpin,LOW);
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
    if (results.value=="FFFFFF") {
      switch (cmd) {
        case "pwr": blinkled(13);break;
      }
    }
    else {
      switch (results.value) {
        case "FF629D": cmd="pwr";break;
      }
    }
  }
}

this is error:

IR.cpp: In function 'void loop()':
IR:24: error: ISO C++ forbids comparison between pointer and integer
IR:26: error: case label does not reduce to an integer constant
IR:31: error: case label does not reduce to an integer constant
IR:31: error: invalid conversion from 'const char*' to 'char'

Why is it not working?? Thank you for your time.

if (results.value==“FFFFFF”) {

The value field in the results structure is a long. It will NEVER equal a character string.

please can you fix it and post it there? Thank you

can you fix it and post it there?

if (results.value==0xFFFFFF) { Though 0xFFFFFF may not be the correct value...

PaulS:

can you fix it and post it there?

if (results.value==0xFFFFFF) { Though 0xFFFFFF may not be the correct value...

it seems to be working :) thank you