Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Bug Fixes / Typos #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "git",
"url": "https://github.com/eloquentarduino/EloquentSurveillance"
},
"version": "1.0.14",
"version": "1.0.15",
"authors": {
"name": "Simone Salerno",
"url": "https://github.com/eloquentarduino"
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=EloquentSurveillance
version=1.0.14
version=1.0.15
author=Simone Salerno <[email protected]>
maintainer=Simone Salerno <[email protected]>
sentence=Esp32-cam surveillance system, batteries included
Expand Down
6 changes: 3 additions & 3 deletions src/Motion.h
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,13 @@ namespace EloquentSurveillance {

uint8_t blockSize = _location.size;

for (uint16_t y = _location.y > blockSize / 2 ? ; y < _location.y + blockSize; y += blockSize / 2) {
for (uint16_t y = _location.y > blockSize / 2 ; y < _location.y + blockSize; y += blockSize / 2) {
for (uint16_t x = _location.x; x < _location.x + blockSize; x += blockSize / 2) {
uint16_t confidence = 0;
uint16_t support = 0;

for (uint16_t j = y; j < y + blockSize; j++) {
uint32_t offset = j * W;
uint32_t offset = j * (getWidth()/8);

for (uint16_t i = x; i < x + blockSize; i++) {
if (_changed[offset + i])
Expand All @@ -440,7 +440,7 @@ namespace EloquentSurveillance {
*
*/
template<typename Callback, typename Reducer>
void forEachBlock(Callback callback, Reducer& reducer, uint16_t x, uint16_t y, uint16_t width, uitn16_t height, uint8_t size) {
void forEachBlock(Callback callback, Reducer& reducer, uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t size) {
for (uint16_t j = y; j < height - size; j += size / 2) {
for (uint16_t i = x; i < width - size; i += size / 2) {
reducer.newBlock();
Expand Down
2 changes: 1 addition & 1 deletion src/WiFiHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace EloquentSurveillance {
String getIP() {
IPAddress ip = _isClient ? WiFi.localIP() : WiFi.softAPIP();

return String(ip[0]) + '.' + ip[1] + '.' + ip[2] + '.' + ip[3];
return String(ip[0] + '.' + ip[1] + '.' + ip[2] + '.' + ip[3]);
}


Expand Down