From b06895d00f0de144aebe9183c8d24fca1c062d3b Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 23 Dec 2024 10:11:25 +0100 Subject: [PATCH] Add AU region Addresses #162 --- main.c | 2 +- nmrp.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 1d21118..ec82c63 100644 --- a/main.c +++ b/main.c @@ -43,7 +43,7 @@ void usage(FILE *fp) " -T Time (seconds) to wait after successfull TFTP upload [%d s]\n" " -p Port to use for TFTP upload [%d]\n" #ifdef NMRPFLASH_SET_REGION - " -R Set device region (NA, WW, GR, PR, RU, BZ, IN, KO, JP)\n" + " -R Set device region (NA, WW, GR, PR, RU, BZ, IN, KO, JP, AU)\n" #endif " -S Skip bytes of the firmware file\n" #ifdef NMRPFLASH_TFTP_TEST diff --git a/nmrp.c b/nmrp.c index 0b24242..53f7260 100644 --- a/nmrp.c +++ b/nmrp.c @@ -113,6 +113,7 @@ static uint16_t to_region_code(const char *region) REGION_CODE("IN", 0x0007); REGION_CODE("KO", 0x0008); REGION_CODE("JP", 0x0009); + REGION_CODE("AU", 0x000a); #undef REGION_CODE return 0; }