mirror of
https://github.com/grblHAL/core.git
synced 2026-03-23 11:32:44 +08:00
Renamed default hostnames and device names, added some HAL extensions and hardened code a bit.
This commit is contained in:
@@ -84,6 +84,15 @@
|
||||
#ifndef KEYPAD_ENABLE
|
||||
#define KEYPAD_ENABLE 0
|
||||
#endif
|
||||
#if KEYPAD_ENABLE == 1
|
||||
#ifdef I2C_STROBE_ENABLE
|
||||
#undef I2C_STROBE_ENABLE
|
||||
#endif
|
||||
#define I2C_STROBE_ENABLE 1
|
||||
#endif
|
||||
#ifndef I2C_STROBE_ENABLE
|
||||
#define I2C_STROBE_ENABLE 0
|
||||
#endif
|
||||
#ifndef EEPROM_ENABLE
|
||||
#define EEPROM_ENABLE 0
|
||||
#endif
|
||||
@@ -132,9 +141,6 @@
|
||||
#ifndef ODOMETER_ENABLE
|
||||
#define ODOMETER_ENABLE 0
|
||||
#endif
|
||||
#ifndef BLUETOOTH_ENABLE
|
||||
#define BLUETOOTH_ENABLE 0
|
||||
#endif
|
||||
#ifndef OPENPNP_ENABLE
|
||||
#define OPENPNP_ENABLE 0
|
||||
#endif
|
||||
@@ -145,6 +151,19 @@
|
||||
#define LIMITS_OVERRIDE_ENABLE 0
|
||||
#endif
|
||||
|
||||
#ifndef BLUETOOTH_ENABLE
|
||||
#define BLUETOOTH_ENABLE 0
|
||||
#endif
|
||||
#if BLUETOOTH_ENABLE
|
||||
#ifndef BLUETOOTH_DEVICE
|
||||
#define BLUETOOTH_DEVICE "grblHAL"
|
||||
#endif
|
||||
#ifndef BLUETOOTH_SERVICE
|
||||
#define BLUETOOTH_SERVICE "grblHAL Serial Port" // Minimum 8 characters, or blank for open
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef ENABLE_SAFETY_DOOR_INPUT_PIN
|
||||
#define SAFETY_DOOR_ENABLE 1
|
||||
#else
|
||||
@@ -218,7 +237,7 @@
|
||||
|
||||
#if ETHERNET_ENABLE
|
||||
#ifndef NETWORK_HOSTNAME
|
||||
#define NETWORK_HOSTNAME "GRBL"
|
||||
#define NETWORK_HOSTNAME "grblHAL"
|
||||
#endif
|
||||
#ifndef NETWORK_IPMODE
|
||||
#define NETWORK_IPMODE 1 // 0 = static, 1 = DHCP, 2 = AutoIP
|
||||
|
||||
Reference in New Issue
Block a user