mirror of https://github.com/openXC7/prjxray.git
frame_address_decoder: Autodetect input address base (oct, dec, hex)
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net> Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
This commit is contained in:
parent
9cbd9bac28
commit
cfbfb477e6
|
|
@ -16,7 +16,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
for (uint32_t frame_address_raw;
|
||||
(*input_stream) >> std::hex >> frame_address_raw;
|
||||
(*input_stream) >> std::setbase(0) >> frame_address_raw;
|
||||
) {
|
||||
xc7series::ConfigurationFrameAddress frame_address(frame_address_raw);
|
||||
std::cout << "["
|
||||
|
|
|
|||
Loading…
Reference in New Issue