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:
Rick Altherr 2017-12-12 11:38:57 -08:00 committed by Tim 'mithro' Ansell
parent 9cbd9bac28
commit cfbfb477e6
1 changed files with 1 additions and 1 deletions

View File

@ -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 << "["