Use std::array, std::span, split void* ctl functions into typed API

This commit is contained in:
Ian Gulliver
2026-04-05 08:55:51 +09:00
parent 7f7055cec5
commit fd9e85c970
3 changed files with 405 additions and 237 deletions

View File

@@ -71,7 +71,7 @@ int main() {
std::copy(uid.id, uid.id + 8, resp.board_id.begin());
w6300::net_info info;
w6300::get_net_info(&info);
std::copy(info.mac, info.mac + 6, resp.mac.begin());
resp.mac = info.mac;
send_bytes(encode_response(msg->message_id, resp));
break;
}