feat: defmt + derive for some UDP types

Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
This commit is contained in:
Lachezar Lechev 2023-02-10 14:51:55 +02:00
commit f2ac8521b1
No known key found for this signature in database
GPG key ID: B2D641D6A2C8E742
4 changed files with 8 additions and 2 deletions

View file

@ -2,6 +2,8 @@ use crate::bus::Bus;
use crate::register::socketn;
use embedded_nal::Ipv4Addr;
#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct Socket {
pub index: u8,
register: u8,