mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 17:46:14 +01:00
better isprint instead
This commit is contained in:
parent
df9b7813a9
commit
50e85d0b79
|
@ -18,7 +18,6 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with CommandStation. If not, see <https://www.gnu.org/licenses/>.
|
* along with CommandStation. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include <ctype.h> // isascii in dump for diagnostics
|
|
||||||
#include "EEStore.h"
|
#include "EEStore.h"
|
||||||
#include "Turnouts.h"
|
#include "Turnouts.h"
|
||||||
#include "Sensors.h"
|
#include "Sensors.h"
|
||||||
|
@ -98,7 +97,7 @@ void EEStore::dump(int num) {
|
||||||
DIAG(F("\nAddr 0x char\n"));
|
DIAG(F("\nAddr 0x char\n"));
|
||||||
for (int n=0 ; n<num; n++) {
|
for (int n=0 ; n<num; n++) {
|
||||||
EEPROM.get(n, b);
|
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 : ' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue
Block a user