1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

better isprint instead

This commit is contained in:
Harald Barth 2020-10-28 23:19:55 +01:00
parent df9b7813a9
commit 50e85d0b79

View File

@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with CommandStation. If not, see <https://www.gnu.org/licenses/>.
*/
#include <ctype.h> // isascii in dump for diagnostics
#include "EEStore.h"
#include "Turnouts.h"
#include "Sensors.h"
@ -98,7 +97,7 @@ void EEStore::dump(int num) {
DIAG(F("\nAddr 0x char\n"));
for (int n=0 ; n<num; n++) {
EEPROM.get(n, b);
DIAG(F("%d %x %c\n"),n,b,isascii(b) ? b : ' ');
DIAG(F("%d %x %c\n"),n,b,isprint(b) ? b : ' ');
}
}
///////////////////////////////////////////////////////////////////////////////