Skip to content

Commit

Permalink
Merge branch 'prusa3d:master' into vscode-sim
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler authored Dec 18, 2023
2 parents d1e8a83 + cf299fc commit 9ef109d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/Marlin/Marlin/src/gcode/feature/input_shaper/M74.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ void GcodeSuite::M74() {

if (parser.seen('W')) {
const float m = parser.value_float();
if (m > 0) {
if (m >= 0.f) {
params.mass = m;
} else {
SERIAL_ECHO_MSG("?Mass (W) must be greater than 0");
SERIAL_ECHO_MSG("?Mass (W) must be greater or equal 0");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/DialogConnectReg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DialogConnectRegister : public AddSuperWindow<IDialog> {
private:
char attempt_buffer[30];
char detail_buffer[70];
char error_buffer[80];
char error_buffer[90];

// TODO: Doesn't fit
constexpr static const char *const headerLabel = N_("PRUSA CONNECT");
Expand Down
5 changes: 3 additions & 2 deletions src/marlin_stubs/host/M46.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ void GcodeSuite::M46() {
netdev_get_ipv4_addresses(netdev_get_active_id(), &ethconfig);
uint8_t *ipp = (uint8_t *)&ethconfig.addr_ip4;
char ip4[17] = { 0 };
sprintf(ip4, "%u.%u.%u.%u\n", ipp[0], ipp[1], ipp[2], ipp[3]);
snprintf(ip4, sizeof(ip4), "%u.%u.%u.%u\n", ipp[0], ipp[1], ipp[2], ipp[3]);
serialprintPGM(ip4);

if (parser.seen('M')) {
mac_address_t mac;
char mac_buffer[19] = { 0 };
get_MAC_address(&mac, netdev_get_active_id());
snprintf(mac_buffer, sizeof(mac_buffer), "%s\n", mac);
serialprintPGM(mac);
}
}

0 comments on commit 9ef109d

Please sign in to comment.