refactoring. stm32 minimal support

This commit is contained in:
livello
2018-11-07 01:25:28 +03:00
parent 040dcfe746
commit 9ea9ad8698
6 changed files with 84 additions and 55 deletions

View File

@@ -23,16 +23,17 @@ e-mail anklimov@gmail.com
#include "utils.h"
#ifdef _dmxout
#include "dmx.h"
#include "FastLED.h"
#endif
#ifndef MODBUS_DISABLE
#include <ModbusMaster.h>
#endif
#include <PubSubClient.h>
short modbusBusy = 0;
extern aJsonObject *pollingItem;
@@ -1266,7 +1267,10 @@ int Item::SendStatus(short cmd, short n, int *Par, boolean deffered) {
if (Par)
for (short i = 0; i < n; i++) {
char num[4];
#ifndef FLASH_64KB
snprintf(num, sizeof(num), "%d", Par[i]);
#endif
itoa(Par[i],num,10);
strncat(valstr, num, sizeof(valstr));
if (i != n - 1) {
strcpy(num, ",");