Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
GyverLibs committed Jan 5, 2022
1 parent 970e454 commit 9d18b80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ void loop() {
- v1.4 - переделан FastIO
- v1.4.1 - убран FastIO, CRC вынесен отдельно
- v2.0 - убран буфер на отправку, убран манчестер, полностью переделан и оптимизирован интерфейс связи
- v2.0.1 - fix compiler warnings

<a id="feedback"></a>
## Баги и обратная связь
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Gyver433
version=2.0
version=2.0.1
author=AlexGyver <alex@alexgyver.ru>
maintainer=AlexGyver <alex@alexgyver.ru>
sentence=Simple library for 433 MHz radio
Expand Down
5 changes: 3 additions & 2 deletions src/Gyver433.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
v1.4 - переделан FastIO
v1.4.1 - убран FastIO, CRC вынесен отдельно
v2.0 - убран буфер на отправку, убран манчестер, полностью переделан и оптимизирован интерфейс связи
v2.0.1 - fix compiler warnings
*/

#ifndef _Gyver433_h
Expand Down Expand Up @@ -53,7 +54,7 @@
#define G433_EDGE_S (G433_START + G433_WINDOW)

// жоский delay для avr
#ifdef AVR
#ifdef _delay_us
#define G433_DELAY(x) _delay_us(x)
#else
#define G433_DELAY(x) delayMicroseconds(x)
Expand Down Expand Up @@ -85,7 +86,7 @@ class Gyver433_TX {

// отправка, блокирующая. Кушает любой тип данных
template <typename T>
bool sendData(T &data) {
void sendData(T &data) {
uint8_t *ptr = (uint8_t*) &data;
write(ptr, sizeof(T));
}
Expand Down

0 comments on commit 9d18b80

Please sign in to comment.