mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-03-21 17:21:04 +03:00
add "hex+text" input
This commit is contained in:
@@ -147,7 +147,8 @@ static const char *getdec(const char *buf, uint32_t *N){
|
||||
return buf;
|
||||
}
|
||||
// read hexadecimal number (without 0x prefix!)
|
||||
static const char *gethex(const char *buf, uint32_t *N){
|
||||
const char *gethex(const char *buf, uint32_t *N){
|
||||
if(!buf || !N) return NULL;
|
||||
const char *start = buf;
|
||||
uint32_t num = 0;
|
||||
while(*buf){
|
||||
|
||||
Reference in New Issue
Block a user