diff --git a/Makefile b/Makefile index 6415047..bebc7e7 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ TARGET_MCU_PACKAGE ?= CH32V203C8T6 CH32V003FUN ?= ./ch32v003fun/ch32v003fun MINICHLINK ?= ./ch32v003fun/minichlink -PREFIX ?= riscv64-none-elf +PREFIX ?= riscv64-elf NEWLIB ?= /usr/riscv64-none-elf/include/ INCLUDE_DIRS ?= \ diff --git a/config.c b/config.c index 3653edc..4f7822f 100644 --- a/config.c +++ b/config.c @@ -2,8 +2,8 @@ // Node config definition node_config_t NODE_CONFIG = {.id = "ch32-node-1", - .name = "test node 1, broken usb", - .location = "dunno yet"}; + .name = "Greenhouse node 1", + .location = "Greenhouse"}; // RS485 devices definition const rs485_device_t RS485_DEVICES[RS485_DEVICE_COUNT] = { diff --git a/include/config.h b/include/config.h index 089a376..af75c08 100644 --- a/include/config.h +++ b/include/config.h @@ -29,7 +29,7 @@ typedef struct { } rs485_device_t; // Network configuration -#define MQTT_SERVER_IP {192, 168, 102, 100} +#define MQTT_SERVER_IP {192, 168, 102, 1} #define MQTT_PORT 1883 // MQTT configuration