Commit 6d008b77 authored by Peter Zumbruch's avatar Peter Zumbruch
Browse files

corrected deprecated prog_char

git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@391 50339f28-a4cd-11e1-ab1f-8360dde1fe65
parent 3e4c179d
......@@ -12,6 +12,7 @@
#include "api_define.h"
#include "api_global.h"
#include "api_debug.h" #include "mem-check.h"
#include "twi_master.h"
#include "api_show.h"
......@@ -60,7 +61,7 @@ int8_t show(struct uartStruct *ptr_uartStruct)
ptr_uartStruct->number_of_arguments = 1;
for (uint8_t i = 0; i < MAX_LENGTH_PARAMETER; i++) {setParameter[1][i]=STRING_END;}
snprintf_P(setParameter[1],MAX_LENGTH_PARAMETER -1, (const prog_char*) (pgm_read_word( &(commandShowKeywords[index]))));
snprintf_P(setParameter[1],MAX_LENGTH_PARAMETER -1, (PGM_P) (pgm_read_word( &(commandShowKeywords[index]))));
printDebug_p(debugLevelEventDebug, debugSystemSHOW, __LINE__, PSTR(__FILE__), PSTR("recursive call of show with parameter \"%s\" (%p)"), &setParameter[1][0], &setParameter[1][0]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment