mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-25 23:30:40 -04:00
Extract to_string_* functions from ui_widget.
This commit is contained in:
parent
d8c59e2ce2
commit
76845c4335
12 changed files with 178 additions and 122 deletions
|
@ -21,8 +21,7 @@
|
|||
|
||||
#include "manchester.hpp"
|
||||
|
||||
// TODO: SERIOUSLY!? Including this, just to use to_string_hex?! Refactor!!!1
|
||||
#include "ui_widget.hpp"
|
||||
#include "string_format.hpp"
|
||||
|
||||
ManchesterDecoder::DecodedSymbol ManchesterDecoder::operator[](const size_t index) const {
|
||||
const size_t encoded_index = index * 2;
|
||||
|
@ -63,8 +62,8 @@ ManchesterFormatted format_manchester(
|
|||
error |= symbol.error;
|
||||
|
||||
if( (i & 3) == 3 ) {
|
||||
hex_data += ui::to_string_hex(data & 0xf, 1);
|
||||
hex_error += ui::to_string_hex(error & 0xf, 1);
|
||||
hex_data += to_string_hex(data & 0xf, 1);
|
||||
hex_error += to_string_hex(error & 0xf, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue