frame_address_decoder: Autodetect input address base (oct, dec, hex)

Signed-off-by: Rick Altherr <[email protected]>
Signed-off-by: Tim 'mithro' Ansell <[email protected]>
This commit is contained in:
Rick Altherr
2017-12-20 22:46:39 +01:00
committed by Tim 'mithro' Ansell
parent 9cbd9bac28
commit cfbfb477e6
+1 -1
View File
@@ -16,7 +16,7 @@ int main(int argc, char *argv[]) {
} }
for (uint32_t frame_address_raw; 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); xc7series::ConfigurationFrameAddress frame_address(frame_address_raw);
std::cout << "[" std::cout << "["