mirror of
https://github.com/openXC7/prjxray.git
synced 2026-08-22 05:57:29 +02:00
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:
committed by
Tim 'mithro' Ansell
parent
9cbd9bac28
commit
cfbfb477e6
@@ -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 << "["
|
||||||
|
|||||||
Reference in New Issue
Block a user