Question about the "Flash" library, PROGMEM and how to do something.

johnwasser:
Of course if you don't need a table of your strings you can skip the second part and reference the strings individually.

OK forgive me for being so dense, but is THIS right (i.e. the string is in PROGMEM and stays there)?

// buffer is defined already FYI

        prog_char menu2[] PROGMEM = {
                "    (3) %s this channel\r\n\r\n"
                "    Option:  " 
        };

        sprintf(buffer, menu2, P_enabled[v-1] ? "Disable" : "Enable ");

        Serial.write(buffer);

Is this right?