mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
cmd_parser: parse mac into a global result buffer
parse_mac() now writes to the global mac_parse_result[6] and takes only the index, like the other parsers (ip[4]). This drops the local __xdata buffer and the now-unused hexval() helper. Build (KP_9000_9XHML_X_V3_1): ROM 110302 -> 110193 bytes, XSEG and internal RAM unchanged.
This commit is contained in:
1 parent
dc4fb5becc
commit
12fb6fd809
2 files changed
+45
-53
No files matched your search
@@ -15,7 +15,6 @@ void execute_config(void) __banked;
|
||||
void execute_commands(__xdata uint8_t *p) __banked;
|
||||
void print_ip(__xdata uint8_t *ptr) __banked;
|
||||
void print_mac(__xdata uint8_t *ptr) __banked;
|
||||
uint8_t parse_mac(uint8_t idx, __xdata uint8_t *mac);
|
||||
void print_sw_version(void) __banked;
|
||||
void clear_command_history(void) __banked;
|
||||
|
||||
|
||||
Reference in new issue
Block a user