Skip to content

Commit

Permalink
Update deprecated prog_char -> const char X PROGMEM.
Browse files Browse the repository at this point in the history
  • Loading branch information
vogelchr committed Sep 15, 2018
1 parent e83453e commit edc9961
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions avr-cobalt-panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ For a copy of the GNU General Public License see http://www.gnu.org/licenses/.
#include "menu.h"
#include "protocol.h"

prog_char hello_one[] = "avr-cobalt-panel";
prog_char hello_two[] = "github/vogelchr";
const char hello_one[] PROGMEM = "avr-cobalt-panel";
const char hello_two[] PROGMEM = "github/vogelchr";

int
main(void)
Expand Down
4 changes: 2 additions & 2 deletions cobalt_buttons.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ cobalt_buttons_get()
return ret & COBALT_BUTTONS_ALL;
}

prog_char button_chars[8]="0PLUDRES";
const char button_chars[8] PROGMEM = "0PLUDRES";

char
cobalt_buttons_simple_char(uint8_t buttons){
uint8_t k;
char * p = button_chars;
const char * p = button_chars;

for(k=0;k<8;k++){
if(buttons == (1<<k))
Expand Down
2 changes: 1 addition & 1 deletion protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/

prog_char inquire_ret[]="avr-cobalt-panel\r\n";
const char inquire_ret[] PROGMEM = "avr-cobalt-panel\r\n";

static uint8_t hex_nibble(char c){
if(c >= '0' && c <= '9')
Expand Down

0 comments on commit edc9961

Please sign in to comment.