Commit Graph
1731 Commits
Author SHA1 Message Date
FotoFieber 09de6d8075 Reduce memory footprint (#762)
Allows to run this sketch on an AVR 328 with
all sensors enabled.

Changes:
- use F() macro
- use msg_generic instead of individual variables
2017-01-30 16:48:47 +01:00
Olivier eeb880957c Bump version to 2.2.0-beta (#754) 2017-01-19 19:13:09 +01:00
Olivier c90ff65b53 MySensors 2.1.1 release (#746) 2017-01-17 23:58:02 +01:00
Olivier 7abbfd7b47 Merge Master into Dev (#745)
* Fix spi flash error when compiling in Arduino IDE 1.6.6

* Bump minor version

* Fixed "invalid suffix on literal" warning

* Fix addressing bug in _doSign bitfield

* Make sure nodes not supporting signing informs GW

A node that does not support signing, still needs to inform the
gateway about this to make sure the gateway carries a valid signing
requirement table when a node Id that was requiering signing stops
doing this.
This fixes #286.

* Prevent SecureActuator from accepting ACKs as commands

As ACKs are not currently signed, allowing ACKs as commands
is a considerable security hole for this sketch. This is now resolved.

* Backport of bugfix (#259) in repeaters when forwarding signed messages

* Bumped version to 1.5.2

* Corrected doSign variable name (was _doSign)

* Bumped version to 1.5.3

* Add NULL termination to payloads

Messages addressed to "this" node, will have a null char
appended to the payload after message verification is
done, because some "getters" assume the message being a
string.
2017-01-17 23:23:02 +01:00
Olivier c2dfedc1a9 Revert "Bump version to 2.2.0-beta" (#744) 2017-01-17 22:44:11 +01:00
Olivier 6bad2c721b Consolidate open PRs for bugfix release (#741) 2017-01-16 20:36:15 +01:00
Olivier e66989138b Fix signing presentation bug (#740) 2017-01-16 19:49:12 +01:00
Olivier 815084b4fa AVR: Restrict fast pin function use (#739) 2017-01-15 20:10:15 +01:00
Olivier 952edf7ed7 Rename MyHwATmega328 to MyHwAVR (#738) 2017-01-15 18:10:15 +01:00
Olivier 9041c8ba3d Fix getControllerConfig() (#737) 2017-01-15 16:27:49 +01:00
Marcelo Aquino 2e0f6b6229 Linux: Add support for SPIDEV (#734)
RPi and Linux refactor.

Add GPIO Sysfs for GPIO operations.

Update configure script.

Fix some cppcheck warnings.

Add serial emulation that prints to stdout.

Fix some file headers.
2017-01-14 23:50:21 +01:00
Olivier aa5cecfca1 OTA: Add incoming FW block check (#718) 2017-01-03 20:19:00 +01:00
Olivier 570b6079b6 Bump version to 2.2.0-beta (#713) 2016-12-31 10:48:38 +01:00
Olivier add3f5febe Add OTA update debug info (#711) 2016-12-30 12:37:42 +01:00
Olivier 8fabae979a Harmonize transport code (#710) 2016-12-29 14:50:12 +01:00
Olivier 01711becd1 Update RFM95 driver (#709) 2016-12-29 14:24:48 +01:00
Olivier dd9dff77ed Minor optimizations & code harmonization (#708) 2016-12-28 22:47:41 +01:00
Olivier 7445b065ec Reduce memory footprint (#703) 2016-12-26 23:40:32 +01:00
Olivier 7013f912d2 Fix Arduino IDE warning (#702) 2016-12-26 11:49:07 +01:00
Patrick Fallberg 1040fbebc5 Refactor signing backend (#690)
Cleaned up the AES driver and removed some cppcheck isues
in the process.
2016-12-25 16:12:40 +01:00
Olivier 61e6cecb3f Fix regression, adjust parameters, typos (#699) 2016-12-20 23:15:11 +01:00
Olivier d204929937 Use RNG for randomSeed(), ADC_MODE() switch (#696) 2016-12-19 23:27:10 +01:00
Olivier 38013ce5ac Fix bug preventing msgs from GW-attached sensors (#698) 2016-12-19 22:31:33 +01:00
Bruce Lacey 6a68510d57 Tool bundle updates (#693)
* Pre-commit --cached vs. less-efficient iteration

 * During pre-commit, leverage the git cppcheck --cached
   form instead of iterating over the cached files and
   invoking git cppcheck on each to eliminate
   redundant static analysis

* Add support for Debian Linux on ARM

* Check prerequisite tool minimum versions

 * Bootstrapping will now confirm that each
   prerequisite tool satisfies the minimum version
   required
2016-12-18 11:57:59 +01:00
Bruce Lacey 3be2516ef8 Update RFM69 to MYS coding standards (#694) 2016-12-17 12:50:52 -08:00
Bruce Lacey 4753c1ec3d Override cppcheck library & platform options (#691)
* Using LIBRARY=[avr|gnu] git cppcheck ... will set the command
   line library= to the value
 * Using PLATFORM=[avr.xml|unix32.xml] git cppcheck ... will set
   the command line platform= to the value
 * Corrected logical if error when bootstapping a pristine repo

References #672
2016-12-13 00:26:11 +01:00
Marcelo Aquino 707442b257 RPi: Use logError when possible (#689) 2016-12-12 22:23:19 +01:00
Bruce Lacey 7e1aa82d6e Rename .tools to .mystools for Arduino IDE 2 (#688)
* The Arduino IDE considers the .tools directory
 special and warns if it finds .tools the repo
 * Added detection of .tools directory rename
 * Corrected README errata

References #672
2016-12-11 13:49:32 -08:00
Bruce Lacey 1e37f35dc6 Revert "Rename .tools to .mystools for Arduino IDE" (#687) 2016-12-11 13:28:37 -08:00
Bruce Lacey 68ce74d11a Rename .tools to .mystools for Arduino IDE (#686)
* The Arduino IDE considers the .tools directory
special and warns if it finds .tools the repo

References #672
2016-12-11 22:08:14 +01:00
Bruce Lacey 28e0086291 Refactored tools structure & conventions for reuse (#685)
1.  All common tools are hosted and managed in
    the tools directory (used for both local development
    and continuous integration)
2.  Each tool comprises a directory, akin to a bundle,
    that encapsulates declarative command-line options,
    configuration files and a run script
3.  A single bootstrap script configures a
    development environment
4.  A lightweight runtime provides a common set of
    convenience functions and variables to all scripts

References #672
2016-12-11 09:40:32 +01:00
Olivier 37881d56ba Fix Cppcheck warnings (#684) 2016-12-10 12:46:52 -08:00
Patrick Fallberg 8e1ef13804 Repo restyled using astyle (#683)
The rules are in .tools/astyle/config/style.cfg
and can also be reviewed at
https://www.mysensors.org/view/260#coding-guidelines-core-library
2016-12-07 23:44:29 +01:00
Olivier d4c4ab82ea Fix debug message, add test sketch (#682) 2016-12-07 21:48:37 +01:00
Marcelo Aquino 62b74bb88a RPi: Improve board revision detection (#681)
Revision detection is done at runtime, the configure script has been
simplified to reflect this.
2016-12-07 21:17:59 +01:00
Olivier fdbb285dee Fix payload length verification (#680) 2016-12-06 15:45:27 +01:00
Olivier f59be0aa2a ESP8266: remove redundant EEPROM check (#668) 2016-12-03 16:53:36 +01:00
Bram Oosterhuis 0fe9df1a77 Buildroot integration possible using autotools
* Add option to not install a init script

* Added autotools default install prefix

* Add autotools ${DESTDIR} to the install paths

* Add option to specify platform type
2016-12-03 13:25:25 -02:00
Henrik Ekblad 3570a507a6 Fix regression MY_NODE_ID (#669) 2016-12-03 15:57:23 +01:00
Patrick Fallberg 65bece33fd Add a SublimeText 3 MySensors project (#676)
Various plugins exist to enhance the experience. The project
file contain references for all plugins it holds configurations
for.
2016-12-02 12:26:50 -08:00
Patrick Fallberg ea65c5b150 Move Doxyfile to repository root (#674)
This makes most tools/plugins for Doxygen work without
much adjustment.
Also resolved some Doxygen warnings.
2016-11-29 11:18:49 +01:00
Patrick Fallberg 6564daec3e Update the pre-commit git hook (#667)
It now supports both Linux and Windows and checks
both coding style (astyle) and does static code
analysis (cppcheck).
Tested using "Bash on Ubuntu on Windows" and the
git shell (via GitHub for Windows).

Installation is done by executing hooks/install-hooks.sh
Windows users has to execute it in a cygwin based git shell.

Tools:
astyle (2.05.1 or newer)
cppcheck (1.76.1 or newer)
2016-11-28 14:57:26 -08:00
Bruce Lacey 2f587b9647 Merge pull request #666 from tekka007/DigitalWriteFastUpdate
Add digitalWriteFast support for Atmega1284
2016-11-27 14:57:13 -08:00
tekka007 de82269d68 Add DigitalWriteFast support for Atmega1284 2016-11-27 22:57:28 +01:00
Henrik Ekblad 505c1facc5 Merge pull request #663 from tekka007/FixRoutingTable
Refine routing table update
2016-11-26 15:31:28 +01:00
Henrik Ekblad 41d818f248 Merge pull request #662 from tekka007/ESP8266core
ESP8266: Reorganize EEPROM handling
2016-11-26 15:30:23 +01:00
Olivier cca055fdae Refine routing table upgrade 2016-11-26 10:05:21 +01:00
Olivier b16839cc5d ESP8266: Reorganize EEPROM handling 2016-11-26 09:30:37 +01:00
Patrick Fallberg fb872fae67 Clean up cppcheck suppressions 2016-11-25 14:27:43 +01:00
Henrik Ekblad 16def1162c Merge pull request #661 from tekka007/CodeHarmonization
Update forward link driver limit
2016-11-25 14:10:10 +01:00