Skip to content

Commit

Permalink
compile fix for uC
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Nov 4, 2024
1 parent 8f63ec7 commit 4f10895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ iscsi_fail_reason server::push_response(com_client *const cc, session *const ses
DOLOG(logging::ll_debug, "server::push_response", cc->get_endpoint_name(), "SCSI: stream %u sectors starting at LBA %" PRIu64 ", iSCSI: %u", stream_parameters.n_sectors, stream_parameters.lba, reply_to.get_ExpDatLen());

#if defined(ARDUINO)
uint64_t buffer_n = std::max((long unsigned)MAX_DATA_SEGMENT_SIZE, get_free_heap_space() / 2);
uint64_t buffer_n = std::max(uint32_t(MAX_DATA_SEGMENT_SIZE), get_free_heap_space() / 2);
#else
uint64_t buffer_n = MAX_DATA_SEGMENT_SIZE;
#endif
Expand Down

0 comments on commit 4f10895

Please sign in to comment.