Skip to content

Commit

Permalink
Convert to embedded-hal v1
Browse files Browse the repository at this point in the history
  • Loading branch information
emeric-martineau committed Dec 27, 2024
1 parent 108ff25 commit 85e0936
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[package]
name = "jsy_mk_194"
version = "1.0.3"
version = "2.0.0"
authors = ["Emeric Martineau <[email protected]>"]
edition = "2021"
resolver = "2"
rust-version = "1.66"
rust-version = "1.81"
description = "Rewrite of power reader JSY-MK-194. Tested on ESP32"
homepage = "https://github.com/emeric-martineau/jsy_mk_194"
keywords = ["embedded", "JSY-MK-194", "Esp32"]
keywords = ["embedded", "JSY-MK-194", "Esp32", "embedded-hal v1"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/emeric-martineau/jsy_mk_194"

[dependencies]
embedded-hal = "0.2.7"
embedded-hal = "1.0.0"
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
//! | 15 | negative kwh2 | 55, 56, 57, 58 |
//! | 16 | crc | 59, 60 |
//!
use embedded_hal::blocking::delay::DelayMs;
use embedded_hal::delay::DelayNs;
use error::UartError;

pub mod error;
Expand Down Expand Up @@ -223,7 +223,7 @@ impl Channel {
pub struct JsyMk194<U, D>
where
U: Uart,
D: DelayMs<u16>,
D: DelayNs,
{
uart: U,
delay: D,
Expand All @@ -239,7 +239,7 @@ where
impl<U, D> JsyMk194<U, D>
where
U: Uart,
D: DelayMs<u16>,
D: DelayNs,
{
/// Create a new struct of JsyMk194.
pub fn new(uart: U, delay: D) -> Self {
Expand Down

0 comments on commit 85e0936

Please sign in to comment.