mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
some small corrections
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
taken from:s
|
||||
taken from:
|
||||
https://github.com/arendst/Tasmota/blob/development/lib/lib_basic/OneWire-Stickbreaker/OneWire.cpp
|
||||
modified for ems-esp old lib compatibility
|
||||
|
||||
@@ -192,6 +192,7 @@ uint8_t OneWire::reset(void)
|
||||
#endif
|
||||
{
|
||||
IO_REG_TYPE mask IO_REG_MASK_ATTR = bitmask;
|
||||
volatile IO_REG_TYPE * reg IO_REG_BASE_ATTR = baseReg;
|
||||
uint8_t r;
|
||||
uint8_t retries = 125;
|
||||
t_noInterrupts();
|
||||
@@ -227,6 +228,7 @@ void OneWire::write_bit(uint8_t v)
|
||||
#endif
|
||||
{
|
||||
IO_REG_TYPE mask IO_REG_MASK_ATTR = bitmask;
|
||||
volatile IO_REG_TYPE * reg IO_REG_BASE_ATTR = baseReg;
|
||||
|
||||
if (v & 1) {
|
||||
t_noInterrupts();
|
||||
|
||||
Reference in New Issue
Block a user